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...:o
Thanks