-a, --always-readline [password_prompt]
Always remain in "readline mode", regardless of command's
terminal settings. Use this option if you want to use
rlwrap with commands that already do some line editing.
If your interpreter (or any command you want to
rlwrap) already has a command history mechanism it is clearly one of those commands.
The way to use
rlwrap in such a case is (using the GNU APL interpreter
apl as an example):
$ rlwrap --always-readline apl
Be aware, however, that this will override any existing (and, for
apl, apparently, very APL-specific history and completion mechanism). How to avoid this (spoiler: you can't!) is actually one of the most often asked FAQs about
If you omit the
rlwrap will remain "transparent", i.e. it will just hand down all your keypresses to the rlwrapped command, and do nothing.