Mercurial > hg > early-roguelike
diff 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 |
line wrap: on
line diff
--- a/srogue/mdport.c Wed Aug 28 08:37:56 2013 -0700 +++ b/srogue/mdport.c Wed Aug 28 18:54:35 2013 -0700 @@ -632,7 +632,7 @@ case ALT_PAD9 : ch = CTRL('U'); break; #endif #ifdef KEY_BACKSPACE /* NCURSES in Keypad mode sends this for Ctrl-H */ - case KEY_BACKSPACE: ch = CTRL('H'); break; + case KEY_BACKSPACE: ch = erasechar(); break; #endif }