comparison 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
comparison
equal deleted inserted replaced
149:9aa9b9a2e159 150:a307ff9cd95e
1115 #ifdef KEY_LL 1115 #ifdef KEY_LL
1116 case KEY_LL : ch = 'b'; break; 1116 case KEY_LL : ch = 'b'; break;
1117 #endif 1117 #endif
1118 case KEY_NPAGE : ch = 'n'; break; 1118 case KEY_NPAGE : ch = 'n'; break;
1119 1119
1120 #ifdef KEY_BACKSPACE
1121 case KEY_BACKSPACE: ch = md_erasechar(); break;
1122 #endif
1123
1120 #ifdef KEY_B1 1124 #ifdef KEY_B1
1121 case KEY_B1 : ch = 'h'; break; 1125 case KEY_B1 : ch = 'h'; break;
1122 case KEY_C2 : ch = 'j'; break; 1126 case KEY_C2 : ch = 'j'; break;
1123 case KEY_A2 : ch = 'k'; break; 1127 case KEY_A2 : ch = 'k'; break;
1124 case KEY_B3 : ch = 'l'; break; 1128 case KEY_B3 : ch = 'l'; break;