Operating System - HP-UX
1753870 Members
7317 Online
108809 Solutions
New Discussion юеВ

Need to configure stty erase

 
Sreer
Valued Contributor

Need to configure stty erase

Hi Gurus,
I want to put the entry in /etc/profile:

stty erase =

so that when ever I log in as root back space use will get enabled..

Could you pls guide me how to perform this?

rgds
Sree
7 REPLIES 7
Dennis Handly
Acclaimed Contributor

Re: Need to configure stty erase

stty erase ^H # uparrow then H
Sreer
Valued Contributor

Re: Need to configure stty erase

Hi Denni,

Thanks very much for your quick reply.
I put the entry that you told

stty erase ^H
still not working....

rgds Sree
Dennis Handly
Acclaimed Contributor

Re: Need to configure stty erase

What's not working? Nothing changes after you login?
What does "stty -a" show?
Raj D.
Honored Contributor

Re: Need to configure stty erase

Sree,

Try:
- stty erase "^H"

[Use the Shift and 6 for getting --> ^]
[Use Shift and h for getting --> H ]

check with:
- stty -a




What is curret the output of
$ stty -a ; echo $SHELL
$ cat ~/.profile | grep -i stty


Hth,
Raj
" If u think u can , If u think u cannot , - You are always Right . "
Viveki
Trusted Contributor
Sreer
Valued Contributor

Re: Need to configure stty erase

Hi,
Gurus,
I have added the entry stty erase ^?^? in /etc/profile. Now it is working fine.

Thanks for your support!!


Regds Sree
Dennis Handly
Acclaimed Contributor

Re: Need to configure stty erase

>I have added the entry stty erase ^?^? in /etc/profile. Now it is working fine.

This is the delete char, not backspace (control-H). This depends on your terminal emulator settings.