Mercurial > hg > early-roguelike
diff rogue4/mdport.c @ 56:3c5682bbf164
Improve support for keypad 5.
author | elwin |
---|---|
date | Fri, 28 Oct 2011 16:00:05 +0000 |
parents | 107a467612fb |
children | ba9930a7f99d |
line wrap: on
line diff
--- a/rogue4/mdport.c Fri Oct 28 15:45:12 2011 +0000 +++ b/rogue4/mdport.c Fri Oct 28 16:00:05 2011 +0000 @@ -1172,6 +1172,9 @@ case '1': lastch = 'y'; mode=M_TRAIL; break; /* Home */ case '4': lastch = 'b'; mode=M_TRAIL; break; /* End */ + /* ESC [ - not understood by screen/tmux */ + case 'E': ch = '.'; break; /* Keypad 5 */ + /* ESC O - PuTTY */ case 'D': ch = MOD_MOVE('H'); break; case 'C': ch = MOD_MOVE('L'); break; @@ -1217,6 +1220,7 @@ case KEY_LL : ch = 'b'; break; #endif case KEY_NPAGE : ch = 'n'; break; + case KEY_BEG : ch = '.'; break; #ifdef KEY_B1 case KEY_B1 : ch = 'h'; break; @@ -1228,8 +1232,7 @@ case KEY_A3 : ch = 'u'; break; case KEY_C1 : ch = 'b'; break; case KEY_C3 : ch = 'n'; break; - /* next should be '.', but for problem with putty/linux */ - case KEY_B2 : ch = 'u'; break; + case KEY_B2 : ch = '.'; break; #ifdef KEY_SLEFT case KEY_SRIGHT : ch = MOD_MOVE('L'); break;