Operating System - HP-UX
1752426 Members
5669 Online
108788 Solutions
New Discussion юеВ

csh history browsing with up/down arrow key

 
jitou
Occasional Contributor

csh history browsing with up/down arrow key

is there any way to do that?
my up arrow only displays '[A' instead of history.
thanks.
2 REPLIES 2
Peter Nikitka
Honored Contributor

Re: csh history browsing with up/down arrow key

Hi,

standard csh is not able to do that - use tcsh instead:

http://gatekeep.cs.utah.edu/hppd/hpux/Shells/tcsh-6.14.05/

Though you can select between emacs- and vi-style syntax for the commandline editing mode - the arrow keys for navigation work in both modes.

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"
Steven E. Protter
Exalted Contributor

Re: csh history browsing with up/down arrow key

Shalom,

The arrow key is a Linux feature. It has been made to work on HP-UX at the cost of other features that systems admins expect. Its better to use ksh in this case or posix and the escape k method for seeing old commands.

Also: NEVER change the root shell in /etc/passwd

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com