diff arogue7/mdport.c @ 150:a307ff9cd95e

arogue7: fix the backspace key in prompts. md_readchar() now translates KEY_BACKSPACE to the erase character. XRogue seems to work already.
author John "Elwin" Edwards
date Thu, 28 May 2015 09:41:29 -0400
parents 9aa9b9a2e159
children 600873555ec0
line wrap: on
line diff
--- 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;