changeset 73:3192c1e03970

arogue5: fix support for keypad 5.
author elwin
date Sun, 12 Aug 2012 14:45:58 +0000
parents 46f39359c4a7
children 0fd87c5c5fca
files arogue5/mdport.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/arogue5/mdport.c	Sat Aug 11 23:45:34 2012 +0000
+++ b/arogue5/mdport.c	Sun Aug 12 14:45:58 2012 +0000
@@ -1066,6 +1066,9 @@
                 case   '1': lastch = 'y'; mode=M_TRAIL; break;  /* Home     */
                 case   '4': lastch = 'b'; mode=M_TRAIL; break;  /* End      */
 
+                /* ESC [ - xterm, screen */
+                case   'E': ch = '.'; break;            /* Keypad 5         */
+ 
                 /* ESC O - PuTTY */
                 case   'D': ch = MOD_MOVE('H'); break;
                 case   'C': ch = MOD_MOVE('L'); break;
@@ -1117,8 +1120,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;