Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Apr 1997 20:25:39 +0200 (SAT)
From:      John Hay <jhay@zibbi.mikom.csir.co.za>
To:        freebsd-emulation@FreeBSD.org
Subject:   Re: Some doscmd keyboard fixes
Message-ID:  <199704201825.UAA10188@zibbi.mikom.csir.co.za>
In-Reply-To: <199704201754.TAA09508@zibbi.mikom.csir.co.za> from John Hay at "Apr 20, 97 07:54:08 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Oops I forgot to attach the patch.

John
--
John Hay - jhay@mikom.csir.co.za


--- tty.c.org	Sun Sep 22 15:43:00 1996
+++ tty.c	Sun Apr 20 17:32:28 1997
@@ -631,11 +631,11 @@
     {	0x4700, 0x4737, 0x7700, 0xffff }, /* key 71 - home */
     {	0x4800, 0x4838, 0xffff, 0xffff }, /* key 72 - cursor up */
     {	0x4900, 0x4939, 0x8400, 0xffff }, /* key 73 - page up */
-    {	0x2d00, 0x4a2d, 0xffff, 0xffff }, /* key 74 - minus sign */
+    {	0x4a2d, 0x4a2d, 0xffff, 0xffff }, /* key 74 - minus sign */
     {	0x4b00, 0x4b34, 0x7300, 0xffff }, /* key 75 - cursor left */
     {	0xffff, 0x4c35, 0xffff, 0xffff }, /* key 76 - center key */
     {	0x4d00, 0x4d36, 0x7400, 0xffff }, /* key 77 - cursor right */
-    {	0x2b00, 0x4e2b, 0xffff, 0xffff }, /* key 78 - plus sign */
+    {	0x4e2b, 0x4e2b, 0xffff, 0xffff }, /* key 78 - plus sign */
     {	0x4f00, 0x4f31, 0x7500, 0xffff }, /* key 79 - end */
     {	0x5000, 0x5032, 0xffff, 0xffff }, /* key 80 - cursor down */
     {	0x5100, 0x5133, 0x7600, 0xffff }, /* key 81 - page down */
@@ -1312,6 +1312,7 @@
 			K2_STATUS |= K2_CLOCK;
 			break;
 		case XK_Insert:
+		case XK_KP_Insert:
 			K1_STATUS ^= K1_INSERT;
 			K2_STATUS |= K2_INSERT;
 			scan = 82;
@@ -1350,16 +1351,19 @@
     	    	case XK_KP_7:
 			nlock = 1;
 		case XK_Home:
+		case XK_KP_Home:
 			scan = 71;
 			goto docode;
     	    	case XK_KP_8:
 			nlock = 1;
 		case XK_Up:
+		case XK_KP_Up:
 			scan = 72;
 			goto docode;
     	    	case XK_KP_9:
 			nlock = 1;
 		case XK_Prior:
+		case XK_KP_Prior:
 			scan = 73;
 			goto docode;
     	    	case XK_KP_Subtract:
@@ -1368,16 +1372,19 @@
     	    	case XK_KP_4:
 			nlock = 1;
 		case XK_Left:
+		case XK_KP_Left:
 			scan = 75;
 			goto docode;
     	    	case XK_KP_5:
 			nlock = 1;
 		case XK_Begin:
+		case XK_KP_Begin:
 			scan = 76;
 			goto docode;
     	    	case XK_KP_6:
 			nlock = 1;
 		case XK_Right:
+		case XK_KP_Right:
 			scan = 77;
 			goto docode;
     	    	case XK_KP_Add:
@@ -1386,16 +1393,19 @@
     	    	case XK_KP_1:
 			nlock = 1;
 		case XK_End:
+		case XK_KP_End:
 			scan = 79;
 			goto docode;
     	    	case XK_KP_2:
 			nlock = 1;
 		case XK_Down:
+		case XK_KP_Down:
 			scan = 80;
 			goto docode;
     	    	case XK_KP_3:
 			nlock = 1;
 		case XK_Next:
+		case XK_KP_Next:
 			scan = 81;
 			goto docode;
     	    	case XK_KP_0:
@@ -1410,6 +1420,7 @@
 			goto docode;
 
     	    	case XK_Delete:
+    	    	case XK_KP_Delete:
 			scan = flipdelete ? 14 : 83;
 			goto docode;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704201825.UAA10188>