SUMMARY: How do I set the delete key and back space to both erase?

Mark Hargrave (root@wisdom.maf.nasa.gov)
Mon, 03 Mar 1997 08:02:25 -0600 (CST)

Thanks to all who responded!

Reto Lichtensteiger <rali@meitca.com>
moc@voyager.mlb.semi.harris.com (Marcel Chukwunenye)
alevin@ltcm.com (Avi J. Levin)
foster@bial1.ucsd.edu (Dave Foster)
"Ing. Francisco J. Donderis L." <fadal@sonitel.com>
bismark@alta.Jpl.Nasa.Gov (Bismark Espinoza)
peter.bestel@uniq.com.au (Peter Bestel)
Kevin.Sheehan@uniq.com.au (Kevin Sheehan)
llchan@kdupg.edu.my
Andrew Lamb <sm@mis.mua.go.th>
D.White@mcs.surrey.ac.uk

Solution from Reto Lichtensteiger <rali@meitca.com>
---------------------------------------------------

Yes and no :-) You set the character that does the action using stty
(eg., ^H or ^?) but to make them both emit the same control character you
use xmodmap ...

Here's the stuff out of my .xmodmap file:

!
! Now we want the Back Space key to emit the "Delete" keysym
!
keycode 50 = Delete

In .xinitrc I call xmodmap with the name of the config file:

xmodmap $HOME/.Xmodmap

And in .login I use stty to set the delete key to do backspacing:

stty erase "^?"

Solution from moc@voyager.mlb.semi.harris.com (Marcel Chukwunenye)
------------------------------------------------------------------

You can use (xmodmap -e "keysym BackSpace = Delete") to re-map
your backspace key to function as delete key.