Whenever I try to use the arrow keys in the at>
prompt (after, for example, running at now
) it just shows control codes, eg. ^[[D
for ←.
This makes pasting and editing long commands difficult as the only viable option is to edit, copy and paste from a separate document.
So, how do I get arrow keys to work in the at>
prompt?
(Googling for anything having to do with the at>
prompt or /usr/bin/at
is quite difficult…)
Best Answer
You could use a program such as rlwrap (readline wrapper) for this:
Further reading:
hanslub42/rlwrap (github)