![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using arrow keys in shell scripts | cambridge | Shell Programming and Scripting | 4 | 05-26-2009 07:15 AM |
| Using arrow keys | cooldude | SUN Solaris | 4 | 06-13-2008 12:51 PM |
| How to read arrow keys on really old bash? | simonb | Shell Programming and Scripting | 1 | 05-01-2006 11: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 |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
problem using arrow keys in bash shell
hello everybody,
as many, I have a problem with a script... I wrote a shell script in which I want to read a variable value. the problem is that I can't use the arrow keys. Here is the script I use : #!/bin/bash stty erase ^H read foune echo "$foune" exit 0; the problem is that if the user ( or me..) wants to correct what he wrote, he can't use the arrow keys ( i had the same problem with backspace but i fixed it with stty erase ^H). Instead it print "value^[[D" (the ^[[D is when i use left arrow key) I don't know if I have been clear enough, but if someone understand my problem... ![]() Thanks Last edited by Moumou; 07-16-2009 at 06:46 AM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|