Skip to content

Commit 4c90511

Browse files
Send p instead of \0 for sendKeyPress (#3939)
1 parent 63f75e5 commit 4c90511

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/process.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,11 @@ export class PowerShellProcess {
164164
}
165165

166166
public sendKeyPress() {
167-
this.consoleTerminal.sendText("\0", false);
167+
// NOTE: This is a regular character instead of something like \0
168+
// because non-printing characters can cause havoc with different
169+
// languages and terminal settings. We discard the character server-side
170+
// anyway, so it doesn't matter what we send.
171+
this.consoleTerminal.sendText("p", false);
168172
}
169173

170174
private logTerminalPid(pid: number, exeName: string) {

0 commit comments

Comments
 (0)