From 645b398ad5da9687a8659e0eddc451433b373d54 Mon Sep 17 00:00:00 2001 From: bagajjal Date: Fri, 5 Jan 2018 16:24:25 -0800 Subject: [PATCH] fix backspace (Control+?) in no-pty session --- contrib/win32/win32compat/shell-host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/win32/win32compat/shell-host.c b/contrib/win32/win32compat/shell-host.c index 689a5b92c38..ba0853d79fa 100644 --- a/contrib/win32/win32compat/shell-host.c +++ b/contrib/win32/win32compat/shell-host.c @@ -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--;