The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 07-16-2009
Moumou Moumou is offline
Registered User
  
 

Join Date: Jul 2009
Location: grenoble
Posts: 32
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
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 06:00 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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