On Sep 15, 2008, at 3:40 PM, Sean Conner wrote:
Well, the Linux kernel expects the erase key to be
ASCII 127,
and has the
backspace key generate said character. The default xterm
expects the erase
key to be ASCII 8 and doesn't know how to handle ASCII 127 that the
backspace key under Linux sends. And it drives me nuts!
That has nothing at all to do with the kernel; it's in the
terminal driver.
Which, being Unix, is part of the kernel 8-P
Yeah, I was tired and hip-deep in pthreads code when I wrote that,
trying to debug a process containing some ninety threads. My brain
was fried.
You can
control all of those special character
interpretations using stty. You can make the "erase" character
anything you want, even a regular alpha character, like 'X':
Yes, I know about that. The problem I have is that I regularly
log onto
Linux servers using X-Windows (defaults to BS) under Linux
(defaults to DEL)
and Mac OS-X (defaults to BS) equally, so half the time, I'm in the
wrong
mode. I suppose I could come up with some shellrc magic to
automagically
handle that for me, but I would have to add said automagic shellrc
stuff to
over two dozen servers *and* make sure it works with Windows
clients as
well (which wouldn't surprise me if sends BS as well).
I set *everything* to use DEL by default...makes life much easier.
-Dave
--
Dave McGuire
Port Charlotte, FL