with-readline

Wraps programs to use GNU Readline for interactive input

brewmacoslinux
Try with needOr install directly
Source

About

Allow GNU Readline to be used with arbitrary programs

Commands

rlwrap

Examples

Add readline support to a program without native support$ rlwrap sqlite3 mydatabase.db
Use readline with a custom prompt and history file$ rlwrap -p 'Input: ' -f ~/.myapp_history myapp
Enable readline with completion for a command-line tool$ rlwrap -c mycommand