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

From: Mark Hargrave (root@wisdom.maf.nasa.gov)
Date: Mon Mar 03 1997 - 08:02:25 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.



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