Interpreters, e.g., k and q, sometimes have no command line history or editing.<p>A solution frequently recommended for k and q is rlwrap.<p>I find rlwrap too big and slow, especially for the tiny, fast k and q interpreters. It feels sluggish.<p>I have begun experimenting with "lile", a modified version of "ile" which apparently dates back to 1988. I have not seen it discussed anywhere on today's www.<p>It is small and fast. Custom key commands can be assigned per application using configuration files.<p>More info:<p>ftp://ftp7.FreeBSD.org/sites/ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/misc/lile/DESCR<p>ftp://ftp6.us.freebsd.org/mirror/FreeBSD-Archive/ports/distfiles/lile-2.0.tar.z<p>ftp://ftp.sra.co.jp/pub/os/NetBSD/NetBSD-current/pkgsrc/misc/lile/patches/patch-aa<p>Do HN readers have other suggestions?<p>Below are some familiar options I have explored.<p>Dates may be wrong.<p>linenoise (2010)<p>https://github.com/antirez/linenoise<p>libtecla (2001)<p>http://www.astro.caltech.edu/~mcs/tecla/<p>editline (1992)<p>https://thrysoee.dk/editline/<p>editline (1992)<p>https://github.com/troglobit/editline<p>readline (1989)<p>https://tiswww.case.edu/php/chet/readline/rltop.html
wow. thanks a LOT ! i had no previous knowledge of this little gem.
I am an avid user of rlwrap mostly to "tame" utils like sqlplus ( thanks, oracle ! ) or IBM cmd-line utils... these have horrendous editing capabilities. I am sure to check lile. :)