# HG changeset patch # User John "Elwin" Edwards # Date 1432820489 14400 # Node ID a307ff9cd95ef30bb863298f8fbd0ee79c48d39b # Parent 9aa9b9a2e15948912ce5e0174d5454afc5cf03e1 arogue7: fix the backspace key in prompts. md_readchar() now translates KEY_BACKSPACE to the erase character. XRogue seems to work already. diff -r 9aa9b9a2e159 -r a307ff9cd95e arogue7/mdport.c --- a/arogue7/mdport.c Wed May 27 17:29:32 2015 -0400 +++ b/arogue7/mdport.c Thu May 28 09:41:29 2015 -0400 @@ -1117,6 +1117,10 @@ #endif case KEY_NPAGE : ch = 'n'; break; +#ifdef KEY_BACKSPACE + case KEY_BACKSPACE: ch = md_erasechar(); break; +#endif + #ifdef KEY_B1 case KEY_B1 : ch = 'h'; break; case KEY_C2 : ch = 'j'; break; diff -r 9aa9b9a2e159 -r a307ff9cd95e arogue7/options.c --- a/arogue7/options.c Wed May 27 17:29:32 2015 -0400 +++ b/arogue7/options.c Thu May 28 09:41:29 2015 -0400 @@ -216,7 +216,7 @@ * 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' &&