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

From: Mark Hargrave (
Date: Mon Mar 03 1997 - 08:02:25 CST

Thanks to all who responded!

Reto Lichtensteiger <> (Marcel Chukwunenye) (Avi J. Levin) (Dave Foster)
"Ing. Francisco J. Donderis L." <>
bismark@alta.Jpl.Nasa.Gov (Bismark Espinoza) (Peter Bestel) (Kevin Sheehan)
Andrew Lamb <>

Solution from Reto Lichtensteiger <>

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 (Marcel Chukwunenye)

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

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:47 CDT