arogue5: fix backspace key.

This commit is contained in:
John "Elwin" Edwards 2013-08-28 08:37:56 -07:00
parent 9506edfdc4
commit 6b4b35ba1e
2 changed files with 4 additions and 1 deletions

View file

@ -1193,6 +1193,9 @@ md_readchar(WINDOW *win)
case ALT_PAD7 : ch = MOD_MOVE('Y'); break;
case ALT_PAD8 : ch = MOD_MOVE('K'); break;
case ALT_PAD9 : ch = MOD_MOVE('U'); break;
#endif
#ifdef KEY_BACKSPACE
case KEY_BACKSPACE: ch = md_erasechar(); break;
#endif
}

View file

@ -223,7 +223,7 @@ WINDOW *win;
* loop reading in the string, and put it in a temporary buffer
*/
for (sp = buf;
(c = wgetch(win)) != '\n' &&
(c = md_readchar(win)) != '\n' &&
c != '\r' &&
c != '\033' &&
c != '\007' &&