fix(gui): add \r for windows (shouldn't effect unix bc they should ignore it) (#2253)

This commit is contained in:
YummyOreo 2024-07-10 12:43:18 -05:00 committed by GitHub
parent 33925e3302
commit 256a81a17a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,7 +56,7 @@ const RunBlock = ({ onPlay, id, code, isEditable }: RunBlockProps) => {
setPty(pty);
console.log(pty);
let val = !value.endsWith("\n") ? value + "\n" : value;
let val = !value.endsWith("\n") ? value + "\r\n" : value;
await invoke("pty_write", { pid: pty, data: val });
}
};