Subject: Re: Using the delete key to "right-delete" chars
To: None <port-i386@netbsd.org>
From: Christian Biere <christianbiere@gmx.de>
List: port-i386
Date: 10/01/2003 04:56:12
--Signature=_Wed__1_Oct_2003_04_56_12_+0200_UuETSfaxu3yjdcbr
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

"Ads" <ads@hitechplanet.com> wrote:

> I searched a way, that would work on both xterms and ascii terms, but
> was unable to find, in that most of the time people use their "Delete"
> key as a"Back Space" key ("left-deleting").

If you use bash as shell you can assign delete-char to the appropriate
keycode (CTRL+V followed by the key to be assigned). See readline(3)
for further details. This should at least work for xterm.
As I didn't found an appropriate function for wscons, I've developed
this little remap hack:

# wsconsctl -w map+="keycode 211 = F11"

Hitting delete should then send the same keycode as F11 (which I
don't need) and you can assign delete-char to it in your ~/.inputrc.
  
-- 
Christian

--Signature=_Wed__1_Oct_2003_04_56_12_+0200_UuETSfaxu3yjdcbr
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQE/ekJW0KQix3oyIMcRAlddAJ4vzssE008/gly6pxqlrLs8UxQ0owCeO89A
Kikk+pF4ZtsI/daQh38OrYI=
=J8Px
-----END PGP SIGNATURE-----

--Signature=_Wed__1_Oct_2003_04_56_12_+0200_UuETSfaxu3yjdcbr--