Re: backspace key binding



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
.



Relevant Pages

  • Re: Backspaces converted to ^? -- want to get rid of ^? -_-...
    ... su'ed in as root using vim, or the SuSe box at work when I VNC into ... behavior so pressing backspace erases a character, ... The attached XTerm file put in $HOME/XTerm will get xterms to send ctrl-h ... keyboard configuration that permits setting the backspace key to send ...
    (freebsd-questions)
  • Re: Exceed problem (backspace not working)
    ... >> except for the backspace key, which either doesn't react or output a ... (Best thing to do with Redhat's customization of the xterm app-defaults file ... is to install the original xterm file - I do this after recording new bugs ...
    (comp.unix.misc)
  • Re: backspace key binding
    ... instead for unknown some reasons, ... All my terminals are xterms, but sometime the backspace binding is ... changed during launching the new xterm. ... the backspace key to prevent it changing in a script? ...
    (comp.unix.shell)
  • xterm & "stty erase ^H"
    ... I have problems getting ^H on the backspace key when using xterm. ... When using kvt ^? ...
    (comp.os.linux.misc)
  • Re: putty x11 forwarding
    ... run xterm and xclock just fine. ... neither the backspace key nor the cursor keys work. ... The cursor keys are/maybe another issue. ...
    (comp.security.ssh)