diff --git a/arogue5/mdport.c b/arogue5/mdport.c index 4fcf0f9..0063400 100644 --- a/arogue5/mdport.c +++ b/arogue5/mdport.c @@ -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 } diff --git a/arogue5/options.c b/arogue5/options.c index f728299..d423c90 100644 --- a/arogue5/options.c +++ b/arogue5/options.c @@ -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' &&