# HG changeset patch # User elwin # Date 1319816712 0 # Node ID e7dc901146f11ea1fa6bfd74bf0cd56ed7688322 # Parent a31b2cb545c5ca1da1c6a059c06b6d5b8ef92367 rogue3: improve keypad support. diff -r a31b2cb545c5 -r e7dc901146f1 rogue3/mdport.c --- a/rogue3/mdport.c Fri Oct 14 16:47:52 2011 +0000 +++ b/rogue3/mdport.c Fri Oct 28 15:45:12 2011 +0000 @@ -1249,6 +1249,9 @@ case '1': lastch = 'y'; mode=M_TRAIL; break; /* Home */ case '4': lastch = 'b'; mode=M_TRAIL; break; /* End */ + /* ESC [ - tmux calling itself screen */ + case 'E': ch = '.'; break; /* Keypad 5 */ + /* ESC O - PuTTY */ case 'D': ch = CTRL('H'); break; case 'C': ch = CTRL('L'); break; @@ -1294,6 +1297,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; @@ -1306,7 +1310,8 @@ 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; + /* Can't reproduce this "problem", changing it. -elwin */ + case KEY_B2 : ch = '.'; break; #ifdef KEY_SLEFT case KEY_SRIGHT : ch = CTRL('L'); break;