how do I get my arrow keys to work for looking thru my PREVIOUS UNIX COMMANDS


 
Thread Tools Search this Thread
# 1  
Old 06-08-2005
how do I get my arrow keys to work for looking thru my PREVIOUS UNIX COMMANDS

how do I make my arrow keys behave like they are on DOS.
ALSO i need editing on command promt like it is on DOS on my UNIX prompt
can anyone help pl..
# 2  
Old 06-08-2005
type set -o Is the vi option turned on? If not, type set -o vi. You should now have history recall/search via keyboard.
# 3  
Old 06-08-2005
What shell are you using? The ability to do this depends on which shell you are using.
# 5  
Old 06-09-2005
Editting on command prompt. There's a number of tools for the job.

The most popular are:

pico (or nano), emacs, and vi

personally I think the easiest to use is emacs and the most tricky is vi (since it's all commd based).

The korn shell should also support using arrow keys for cycling throught the history etc too. What happens when you press up? What terminal type are you using?
# 7  
Old 06-09-2005
The korn shell does *not* support arrow keys for scrolling through commands.

The easiest way is to use vi mode (set -o vi) and then use Esc to get into command mode then k and j to cycle through commands.

The tcsh allows arrow key scrolling, as does bash.

Cheers
ZB
 

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
UP arrow button to recall previous commands in Putty juzz4fun Shell Programming and Scripting 3 05-21-2013 07:28 PM
Read a multiline text from a console - supporting arrow keys wenclu Shell Programming and Scripting 8 10-16-2012 01:51 AM
Arrow keys binding in AIX v5.3 - how? alex_5161 UNIX for Dummies Questions & Answers 2 12-22-2011 06:40 PM
Tux-HJKL as arrow keys dotancohen UNIX for Dummies Questions & Answers 2 09-01-2011 04:14 PM
how to set top arrow to get the history of last used commands etldev UNIX for Dummies Questions & Answers 3 08-07-2011 12:13 AM
How can I output all previous Unix commands in Solaris to a file?? sunnysunnysunny Solaris 3 02-22-2011 09:52 AM
SSH closes connection when using arrow keys stv_t UNIX for Advanced & Expert Users 0 09-17-2009 06:53 AM
problem using arrow keys in bash shell Moumou Shell Programming and Scripting 2 07-17-2009 03:14 AM
Using arrow keys in shell scripts cambridge Shell Programming and Scripting 4 05-26-2009 06:15 AM
SunOS 5.10 - VI Arrow keys not working ravashingravi UNIX for Dummies Questions & Answers 7 12-01-2008 10:22 AM
command scrolling using arrow keys hemangi13 UNIX and Linux Applications 4 09-11-2008 12:53 PM
Using arrow keys cooldude Solaris 4 06-13-2008 11:51 AM
How to read arrow keys on really old bash? simonb Shell Programming and Scripting 1 05-01-2006 10:27 AM
arrow keys / special keys raguramtgr UNIX for Dummies Questions & Answers 3 02-20-2004 01:45 AM
Trapping Arrow keys nageshrc Shell Programming and Scripting 1 11-30-2001 02:36 PM