curses moving left with ^H

Typing ^H actually passed a 16-bit value back to the core which got
interpreted as ^G after the extra bits were discarded.  I don't think
any previous changes to the curses interface caused this.  It's
astonishing that no one ever noticed; the world must be full of numpad
users.
This commit is contained in:
PatR
2019-07-06 16:41:04 -07:00
parent bf672f7f47
commit e84a0625dc
3 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -661,7 +661,7 @@ curses_message_win_getline(const char *prompt, char *answer, int buffer)
goto alldone;
case '\177': /* DEL/Rubout */
case KEY_DC: /* delete-character */
case '\b': /* ^H (Backspace: '\011') */
case '\b': /* ^H (Backspace: '\010') */
case KEY_BACKSPACE:
if (len < 1) {
len = 1;