From owner-freebsd-emulation Sun Apr 20 11:26:04 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id LAA04460 for emulation-outgoing; Sun, 20 Apr 1997 11:26:04 -0700 (PDT) Received: from zibbi.mikom.csir.co.za (zibbi.mikom.csir.co.za [146.64.24.58]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id LAA04445 for ; Sun, 20 Apr 1997 11:25:51 -0700 (PDT) Received: (from jhay@localhost) by zibbi.mikom.csir.co.za (8.8.5/8.8.5) id UAA10188 for freebsd-emulation@FreeBSD.org; Sun, 20 Apr 1997 20:25:40 +0200 (SAT) From: John Hay Message-Id: <199704201825.UAA10188@zibbi.mikom.csir.co.za> Subject: Re: Some doscmd keyboard fixes In-Reply-To: <199704201754.TAA09508@zibbi.mikom.csir.co.za> from John Hay at "Apr 20, 97 07:54:08 pm" To: freebsd-emulation@FreeBSD.org Date: Sun, 20 Apr 1997 20:25:39 +0200 (SAT) X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-emulation@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk 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;