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
Post a Comment