Operating System - HP-UX
1753797 Members
7118 Online
108800 Solutions
New Discussion юеВ

Re: Change erase character

 
initin
Advisor

Change erase character

I am using HP Unix 9.0,
to erase any character on command prompt, I have to use #(Shift +3),
In other user the normal back key is working
I am confused in erase char in .profile, how can I change it to normal.
Thanks in advance
4 REPLIES 4
Anshumali
Esteemed Contributor

Re: Change erase character

Never worked on Hp-ux 9.0 but i would run
stty erase BACKSPACE

to set BACKSPACE as erase char. I would hope its same for 9.0
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Steven Schweda
Honored Contributor

Re: Change erase character

> I am using HP Unix 9.0,

uname -a

> In other user the normal back key is working

What does "In other user" mean here?

> I am confused in erase char in .profile,
> how can I change it to normal.

man stty

stty -a
Manix
Honored Contributor

Re: Change erase character

try this #stty erase ^? ..(try erasing using shift + backspace )
HP-UX been always lovable - Mani Kalra
Bill Hassell
Honored Contributor

Re: Change erase character

The simplest fix is to add this line in /etc/profile:

stty erase "^H" kill "^U" intr "^C" eof "^D" -parity ixoff

The # character is the default for backspace, a carryover from the days of teletypes. Also unusual is the @ character which cancels the current line. So if you need to type an email address (bill@abc.com) you will find the line erased (and ignored) with @ character.

By putting this into /etc/profile, all users (except csh) will get the correct settings.


Bill Hassell, sysadmin