mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
fix backspace (Control+?) in no-pty session (#257)
https://github.com/PowerShell/Win32-OpenSSH/issues/1011
This commit is contained in:
parent
1f636bd8dd
commit
04c012c032
@ -1589,7 +1589,7 @@ start_withno_pty(wchar_t *command)
|
||||
}
|
||||
|
||||
/* for backspace, we need to send space and another backspace for visual erase */
|
||||
if (buf[i] == '\b') {
|
||||
if (buf[i] == '\b' || buf[i] == '\x7f') {
|
||||
if (in_cmd_len > 0) {
|
||||
GOTO_CLEANUP_ON_FALSE(WriteFile(pipe_out, "\b \b", 3, &wr, NULL));
|
||||
in_cmd_len--;
|
||||
|
Loading…
x
Reference in New Issue
Block a user