We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 316f0e7 commit 057de69Copy full SHA for 057de69
1 file changed
src/main/index.js
@@ -528,7 +528,11 @@ class TerminalManager {
528
}
529
530
if (this.mode === 'adb' && this.adbProcess && this.adbProcess.stdin) {
531
- this.adbProcess.stdin.write(data);
+ // xterm sends Enter as '\r', but piped `adb shell` on Windows expects '\n'.
532
+ const normalized = typeof data === 'string'
533
+ ? data.replace(/\r(?!\n)/g, '\n')
534
+ : data;
535
+ this.adbProcess.stdin.write(normalized);
536
return true;
537
538
0 commit comments