bash - Go back on line with left arrow when using read? -


i'm reading stdin read var. when type something, can't go in line pressing left arrow on keyboard. test[[d^[[d^[[d (three presses left arrow). how can solved?

seems question asked before, didn't results on suggestions , google-fu failed me.

the ability use arrow keys move cursor around within text you've entered provided the readline library. bash's read command doesn't use readline default, can tell providing -e option. add option read command.


Comments

Popular posts from this blog

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -