comparison srogue/mdport.c @ 98:ea71ef31d9be

srogue: fix backspace key. Once the full mdport.c is added to srogue, erasechar() will be replaced with md_erasechar().
author John "Elwin" Edwards
date Wed, 28 Aug 2013 18:54:35 -0700
parents 8757a0593e6e
children 8d1dfc5a912c
comparison
equal deleted inserted replaced
97:d4bf99f82ea0 98:ea71ef31d9be
630 case ALT_PAD7 : ch = CTRL('Y'); break; 630 case ALT_PAD7 : ch = CTRL('Y'); break;
631 case ALT_PAD8 : ch = CTRL('K'); break; 631 case ALT_PAD8 : ch = CTRL('K'); break;
632 case ALT_PAD9 : ch = CTRL('U'); break; 632 case ALT_PAD9 : ch = CTRL('U'); break;
633 #endif 633 #endif
634 #ifdef KEY_BACKSPACE /* NCURSES in Keypad mode sends this for Ctrl-H */ 634 #ifdef KEY_BACKSPACE /* NCURSES in Keypad mode sends this for Ctrl-H */
635 case KEY_BACKSPACE: ch = CTRL('H'); break; 635 case KEY_BACKSPACE: ch = erasechar(); break;
636 #endif 636 #endif
637 } 637 }
638 638
639 break; 639 break;
640 } 640 }