Changeset 20310
- Timestamp:
- Jun 27, 2006, 11:48:39 PM (18 years ago)
- Location:
- grass/trunk
- Files:
-
- 4 edited
-
display/d.colors/curses.c (modified) (2 diffs)
-
imagery/i.class/curses.c (modified) (2 diffs)
-
imagery/i.points/curses.c (modified) (2 diffs)
-
imagery/i.vpoints/curses.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
grass/trunk/display/d.colors/curses.c
r18934 r20310 246 246 newchar = wgetch(MENU_WIN) & 0177 ; 247 247 248 if ((newchar > 037) && (newchar < 0177))249 { 248 if ((newchar > '\037') && (newchar < '\177')) 249 { /* octal codes: accept space to '~' */ 250 250 *(pointer++) = newchar ; 251 251 *pointer = 000 ; … … 253 253 wrefresh(MENU_WIN) ; 254 254 } 255 else if (newchar == 010)256 { 255 else if (newchar == '\b' || newchar == '\177') 256 { /* backspace or DEL */ 257 257 if (pointer > answer) 258 258 { -
grass/trunk/imagery/i.class/curses.c
r18934 r20310 213 213 214 214 getyx (stdscr, y, x); 215 if (c > 037 && c < 0177)215 if (c > '\037' && c < '\177') /* octal codes: accept space to '~' */ 216 216 { 217 217 if (x < PROMPT_WINDOW->right) … … 224 224 continue; 225 225 } 226 if (c == '\b' )226 if (c == '\b' || c == '\177') /* backspace or DEL (decimal 8,127) */ 227 227 { 228 228 if (n > 0) -
grass/trunk/imagery/i.points/curses.c
r16897 r20310 208 208 209 209 getyx (stdscr, y, x); 210 if (c > 037 && c < 0177)210 if (c > '\037' && c < '\177') /* octal codes: accept space to '~' */ 211 211 { 212 212 if (x < PROMPT_WINDOW->right) … … 219 219 continue; 220 220 } 221 if (c == '\b' )221 if (c == '\b' || c == '\177') /* backspace or DEL (decimal 8,127) */ 222 222 { 223 223 if (n > 0) -
grass/trunk/imagery/i.vpoints/curses.c
r17473 r20310 200 200 refresh (); 201 201 c = Curses_getch(0) ; 202 202 203 if (c == '\n' || c == '\r') 203 204 break; 204 205 205 206 getyx (stdscr, y, x); 206 if (c > 037 && c < 0177) 207 208 if (c > '\037' && c < '\177') /* octal codes: accept space to '~' */ 207 209 { 208 210 if (x < PROMPT_WINDOW->right) … … 215 217 continue; 216 218 } 217 if (c == '\b') 219 220 if (c == '\b' || c == '\177') /* backspace or DEL (decimal 8,127) */ 218 221 { 219 222 if (n > 0)
Note:
See TracChangeset
for help on using the changeset viewer.
