TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:10890] key behavior



On Tue, Dec 07, 1999 at 08:56:57AM -0600, Phil Plumbo wrote:
> To clarify: I'm using telnet, emulating VT100/ANSI, and my login shell
> is bash, on RedHat 6.1.
> 
>> How can I change the behaviors of the DEL and backspace keys? 

	Well, those would be controlled largely by the stty settings.
The only thing you can really accomplish via those is setting which key
has the behavior of erasing the previous character.  You can do this
with either:

stty erase ^H

or

stty erase ^?

	The first sets the backspace key to have that behavior.  The
second sets the delete key to do it.

	I hope that helps.  Bash itself uses both keys for the erase
behavior.  Programs aren't required to pay attention to the stty
settings, but most do.

Have fun (if at all possible),
-- 
Its name is Public Opinion.  It is held in reverence. It settles everything.
Some think it is the voice of God.  Loyalty to petrified opinion never yet
broke a chain or freed a human soul.     ---Mark Twain
-- Eric Hopper (hopper@omnifarious.mn.org
                http://ehopper-host105.dsl.visi.com/~hopper) --

PGP signature