Reputation: 3091
In q
when I try to recall previous command or move cursor, I'm getting printed codes:
^[[D^[[C^[[A^[[B
IIUC these are the representation of left, right, up, down arrows, which are interpretted by shell to do cursor movement, but not in q
. Is there a way how to have this "functionality" in q
for linux? What am I doing wrong? As it's not always easy to type without any error from left to rigth, when language itself is evaluated from right to left. Actually it's almost never easy...
Upvotes: 0
Views: 296
Reputation: 2800
You need rlwrap. Set an alias for q. alias 'q=rlwrap q'
Edit: realised I messed up the alias syntax
Upvotes: 7