rlwrap

Adds readline support and command history to tools that lack it

brewmacoslinux
Try with needOr install directly
Source

About

Readline wrapper: adds readline support to tools that lack it

Commands

rlwrap

Examples

Add readline support to a tool without built-in history$ rlwrap nc localhost 3000
Use rlwrap with a scripting language interpreter$ rlwrap ruby
Add readline with custom completion words to a command$ rlwrap -c -w 'command1 command2' ./my-cli-tool