how i can enable backspace or charector deletion in hpux11i shell prompt.
Enter this at shell prompt
stty erase <hit the key for deletion>
thanks andryk, it is working fine.
If it is not working I think you can always use CTRL + H
Regards, Johan Louwers.
## -----------------------------------------------------------------------------
## Website: http://www.terminalcult.org
## Weblog : http://johanlouwers.blogspot.com
## E-mail : deleted
## -----------------------------------------------------------------------------
once you figure out what character is associated w/your backspace-key, set it in your .profile
hpuxUSER> grep stty .profile
stty erase "^?" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
Better make sure your TERM environment variable ends up with the proper value.
Sadly too many /etc/profile scripts set the TERM variable to some kind of default.
if you use the stty commands in your .profile it is proper to make sure ^U, ^C and ^D are single characters and not 2 characters.
To make ^U as a single character hit CTRL-V + CTRL-U in your vi editor
for ^C hit CTRL-V + CTRL-C
for ^D hit CTRL-V + CTRL-D
etc
This works for all, except ^?
How do we do it for ^? then..?
I had no problem doing a Ctrl+V [backspacekey]. It properly put in the ^? without a problem.
Carl
Can't be done as far as I know
Are it two characters or is it a single character?
Below!!
Thanks, i did the way you said and it worked..
it's a single character. Just do Ctrl+V and then press the backspace.
Back to the original question..:
On HP-UX, put these 2 lines below, somewhere in your .profile; then you don't need to worry about each time setting the backspace for deletion..
stty erase "^?" kill "^U" intr "^C" eof "^D" # all char's inside "" are single character.
stty hupcl ixon ixoff
Single character. I do it all the time. It's part of my regular new account build when I'm given new servers to deal with
Carl
With most versions of unix it is single character or double character. The stty command accepts it either way.