![]() |
|
|
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 |
| stty erase on solaris 8 sparc | itik | SUN Solaris | 3 | 07-04-2008 10:37 AM |
| stty erase r | bishweshwar | UNIX for Advanced & Expert Users | 5 | 11-27-2006 06:10 AM |
| stty erase in a script | Terrible | UNIX for Advanced & Expert Users | 2 | 06-08-2006 05:39 PM |
| erase file | ust | UNIX for Dummies Questions & Answers | 2 | 03-10-2005 12:39 PM |
| stty erase e command | CEngel0327 | UNIX for Dummies Questions & Answers | 1 | 10-27-2002 03:19 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Problem in /bin/bash with stty erase
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 : Code:
#!/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 Neo; 07-16-2009 at 07:28 AM.. Reason: code tags |
| Bits Awarded / Charged to Moumou for this Post | |||
| Date | User | Comment | Amount |
| 07-16-2009 | Neo | code tags, subject text | -5,000 |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|