rlwrap

 - by joerg

Rlwrap is a readline wrapper, a small utility that uses the GNU readline library to allow the editing of keyboard input for any other command. It maintains a separate input history for each command, and can TAB-expand words using all previously seen words and/or a user-specified file.

Useful when its not possible to repeat last commands e.g. programs like sqlite3:

rlwrap sqlite3 db.sqlite3

See: freecode.com/projects/rlwrap