The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SunOS 5.10 - VI Arrow keys not working ravashingravi UNIX for Dummies Questions & Answers 7 12-01-2008 11:22 AM
Using arrow keys cooldude SUN 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 02:45 AM
Trapping Arrow keys nageshrc Shell Programming and Scripting 1 11-30-2001 03:36 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-08-2005
spotnis spotnis is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 6
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 (permalink)  
Old 06-08-2005
google's Avatar
google google is offline Forum Advisor  
Moderator
  
 

Join Date: Jul 2002
Location: Atlanta
Posts: 740
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 (permalink)  
Old 06-08-2005
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,190
What shell are you using? The ability to do this depends on which shell you are using.
  #4 (permalink)  
Old 06-08-2005
spotnis spotnis is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 6
I am using Korn Shell
  #5 (permalink)  
Old 06-09-2005
d11wtq d11wtq is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 42
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?
  #6 (permalink)  
Old 06-09-2005
spotnis spotnis is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 6
$ echo $TERM
xterm
  #7 (permalink)  
Old 06-09-2005
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
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
Sponsored Links
Closed Thread

Bookmarks

Tags
unix commands

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 03:20 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0