Re: backspace key binding
- From: Stephane CHAZELAS <this.address@xxxxxxxxxx>
- Date: Mon, 23 Jul 2007 09:24:30 GMT
2007-07-17, 13:53(-07), wenmang:
[...]
In my profile, "erase" is set to "set erase '^h'" which is working for
most of times. But, sometime, I use xterm to create a new terminal and
the backspace key is set to "^?" instead for unknown some reasons, my
platform is Redhead Linux, not sure why it happens and how to prevent
it happening. thx.
On Linux, ^? is the default erase character for the
(pseudo-)terminal driver, so xterm is right to issue that
character when you press Backspace. That's rather your other
terminal emulator that is behaving strangly.
If you use ^H, that means that you also need to tune your
terminal driver so that it considers ^H and not ^? as the erase
character.
Now you can configure xterm to issue ^H as well if you want.
This can be done via resources. See xterm's man page for
details.
--
Stéphane
.
- References:
- backspace key binding
- From: wenmang
- backspace key binding
- Prev by Date: Re: NetCat (nc) + xxd usage
- Next by Date: Re: awk !print$x
- Previous by thread: Re: backspace key binding
- Next by thread: Inheriting proper env for crontab
- Index(es):
Relevant Pages
|