1834170 Members
2478 Online
110064 Solutions
New Discussion

newbie hp-ux question

 
SOLVED
Go to solution
sandy test
Frequent Advisor

newbie hp-ux question

Just started using a hp-ux11-23.
In csh, can someone please show me how to
setup .login to let an up arrow show the last
command?

I am using a terminal emulation program on a pc to access the machine. My backspace key doesn't do anything. I would like to setup the keyboard so that a key will backspace + erase, and another key will just backspace with insert mode.

Thanks for any help
Sandy
4 REPLIES 4
Amit Agarwal_1
Trusted Contributor
Solution

Re: newbie hp-ux question

You can set the backspace key for backspace+erase.

$ stty erase

Check by running stty command in alone. erase must be set to "^H" or "backspace".

-Amit
Vibhor Kumar Agarwal
Esteemed Contributor

Re: newbie hp-ux question

Add the line given by Amit in your .profile

Then this will work whenever you will login.
Vibhor Kumar Agarwal
Peter Nikitka
Honored Contributor

Re: newbie hp-ux question

Hi,

your needs cannot be completly done in csh - use 'tcsh' (Tenex C-shell) instead, which is a compatible superset of the csh.
You can download a depot of tcsh at the HP porting centre.
Using 'bindkey -v' enables vi-style and cursor navigation as well (including 'arrow up' to get the last command you supplied).

The other (stty-)stuff: see previous answers.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
sandy test
Frequent Advisor

Re: newbie hp-ux question

thanks for the help