Go back on line with left arrow when using read?

Viewed 449

I'm reading from stdin with read var. When I type something, I can't go back in the line by pressing the left arrow on the keyboard. I get test[[D^[[D^[[D (three presses to the left arrow). How can this be solved?

Seems like a question that was probably asked before, but I didn't get any results on the SO suggestions and my Google-fu failed me.

1 Answers
Related