On Tuesday 22 June 2004 19:24, William Sherwin wrote: > Actually, I have no problems with CTRL-D (exit/logout); I have needed to use > CTRL-H instead of backspace in vim (but not in the command-line itself), > both running it in xterm and in the tty.
One note. The CTRL-? is the actuall ASCII code generated by the key labeled "backspace" in PC keyboards (from the old DOS days until now). The conventional BS character (CTRL-H) has never occured to the PC makers... However, since different terminals are not a new phenomena in the Unix world this was always handled in the terminal driver layer (way before X11 was invented with its own mapping techniques). This can be viewed in any terminal (tty or xterm) via: stty -a Look for your current erase character (by your descriptioon it is CTRL-H). Now set it to the PC code: stty erase ^? (you may either press the BS key which would generate the actuall ascii code or encode it as two characters: caret and question mark. stty(1) accepts both forms). This may be used in your profile/bashrc/login/cshrc etc. (depends on your shell). Since xterms emulates a terminal, it behaves the same. However, if you want you may define the xterm settings via X resources. You may look at xterm(1) and search for 'ttyModes'. Hope it helps. -- Oron Peled Voice/Fax: +972-4-8228492 [EMAIL PROTECTED] http://www.actcom.co.il/~oron Gratis is nice, Libre is an inalienable right. ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]