Subject: Re: Using the delete key to "right-delete" chars
To: NetBSD/i386 Discussion List <port-i386@NetBSD.ORG>
From: Greg A. Woods <woods@weird.com>
List: port-i386
Date: 10/01/2003 11:50:59
[ On Wednesday, October 1, 2003 at 11:30:54 (+0200), Christian Hattemer wrote: ]
> Subject: Re: Using the delete key to "right-delete" chars
>
> With wscons the problem is that both backspace and delete keys map to
> delete. So you just need to fix that either with wsconsctl or by fixing the
> kernel directly with the attached patch.

On many keyboards there's a "real" delete key just above the backspace
key (e.g. on this trusty old Sun Type-4 keyboard I've been using for the
past six years or so).  On PC-style keyboards I like to program the
shifted backspace key to emulate that real delete key, so for many years
I've used a slightly modified version of the same patch:

Index: wskbdmap_mfii.c
===================================================================
RCS file: /cvs/master/m-NetBSD/main/src/sys/dev/pckbc/wskbdmap_mfii.c,v
retrieving revision 1.23.10.1
diff -u -r1.23.10.1 wskbdmap_mfii.c
--- wskbdmap_mfii.c	21 Jun 2002 05:06:46 -0000	1.23.10.1
+++ wskbdmap_mfii.c	25 Jun 2002 17:28:35 -0000
@@ -61,7 +61,7 @@
      KC(11), 			KS_0,		KS_parenright,
      KC(12), 			KS_minus,	KS_underscore,
      KC(13), 			KS_equal,	KS_plus,
-     KC(14),  KS_Cmd_ResetEmul,	KS_Delete,
+     KC(14),  KS_Cmd_ResetEmul,	KS_BackSpace,	KS_Delete,
      KC(15), 			KS_Tab,
      KC(16), 			KS_q,
      KC(17), 			KS_w,

-- 
						Greg A. Woods

+1 416 218-0098                  VE3TCP            RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com>          Secrets of the Weird <woods@weird.com>