Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Backspace not working properly... Where do I change this? 1

Status
Not open for further replies.

TSch

Technical User
Jul 12, 2001
557
0
0
DE
Hi folks,

when pressing "Backspace" it produces an output like this:

^H

where can I change this to function properly ?

Thanks in advance !

Regards
Thomas
 
Hi,

Use:
stty erase ^H

(type ^H by pressing the backspace key)
 
Great, It's working !
But how do I make this change permanent?
After logout I have to use the command all over again ...
 
put the stty in your .prodile or .login vox clamantis in deserto.
 
But how do I tell the system that ^H means "Backspace Key"

If I write

stty erase ^H

it's not working...
Seems as if the system doesn't recognize the ^H as backspace ...
 
In your .profile define the key with regualr expression to protect ^H :

stty erase \^H

Try this....

 
or add the line in your .profile (just as you type it after the shell prompt) BEFORE you change it in your shell...
 
Doing an 'stty erase ^H' after login isn't the best solution. If you happen to mistype your username or password when logging in, you can't edit it. If you can, change your terminal program. I use Reflections and you can have the backspace key send either a Delete or Backspace character. Setting it to send a Delete makes everything work great without having to tweak every login script you have.
 
TSch,

The answer to your question is this. vi your /etc/profile or your .profile.

stty erase <ctrl-v><ctrl-h>

The first ctrl-v keystoke squence produces the caret, while hitting ctrl-h tells the shell to associate that with an H. Please reply back if you are still having problems.

-HTH
bp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top