I have an other Problem with this read command:
(Even thats not a problem with read, I ask anyway in this thread)
When i make inputs (bechaue of a read command) I cant use curser direction (left oder right), or I want to make a backspace, I get some signes like this:
Backspace => ^?
left => ^[[D
right => ^[[C
Delete => ^[[3~
Pos1 => ^[[1~
End => ^[[4~
Can anybody tell me what I have to do in the script before the read command, that the user can use this keys, two?
"Normal" input (cursor keys, etc.) is usually handled by the Shell or the readline library. If your version of read doesn't support any of those it receives them as plain control characters as sent by your terminal (emulation). To set translations for those, use stty on the command line (eg. stty erase ^? to get backspace functionality (Note that ^? isn't two characters, but one, as output when you press backspace))