Trapping Arrow keys


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Old 11-30-2001
Trapping Arrow keys

Hey Guys ,

How do we trap the arrow keys in shell programming.
Or atleast can we read the ascii code of the arrow keys.

I want to read the arrow keys pressed by the user
and accordingly highlight the corresponding menu option.

Is it possible in shell to do so ??

Thanks,
Nagesh.
# 2  
Old 11-30-2001
I don't think that the arrow keys are a part of the Ascii code. Do a man on ascii. It shows a lot but not on arrow keys.

I looked in my .exrc file, which maps keys for vi. I didn't see anything there either. You might check yours just in case.

What OS are you using. Go to their website and check as well.


Smilie
Login or Register to Reply

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

More UNIX and Linux Forum Topics You Might Find Helpful
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
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
up arrow character alex1982 UNIX for Dummies Questions & Answers 1 10-16-2008 01:26 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
how do I get my arrow keys to work for looking thru my PREVIOUS UNIX COMMANDS spotnis UNIX for Dummies Questions & Answers 11 09-14-2005 01:22 AM
arrow keys / special keys raguramtgr UNIX for Dummies Questions & Answers 3 02-20-2004 01:45 AM
vi down arrow key not working artjaniger UNIX for Dummies Questions & Answers 2 06-27-2003 11:40 AM
trapping keys sunil bajaj UNIX for Dummies Questions & Answers 1 04-13-2002 06:52 AM