rlwrap
Add readline editing to any command
TLDR
Add readline to command
SYNOPSIS
rlwrap [-a] [-H file] [-f file] [-i] [options] command [args]
DESCRIPTION
rlwrap adds readline capabilities to any command. It provides line editing, history, and completion for programs that lack them.
History persists across sessions when using -H. Previous inputs are searchable with Ctrl-R. Arrow keys navigate history.
Completion files contain words for Tab completion. The -r option learns words from output, building dynamic completions.
Multi-line mode handles commands spanning multiple lines. This is useful for SQL clients and REPLs that accept multi-line input.
The tool intercepts input, processes it through readline, then passes it to the wrapped command. Output passes through unchanged.
Prompts are detected and colorized. This improves visibility in interactive sessions.
PARAMETERS
-a, --always-readline
Always use readline.-H FILE
History file.-f FILE
Completions file.-i, --case-insensitive
Case-insensitive completion.-m [CHAR]
Multi-line mode.-q CHAR
Quote character.-c, --complete-filenames
Complete filenames.-r, --remember
Remember input for completion.-p PROMPT
Prompt color.-b CHARS
Word break characters.-s N
History size.--no-warnings
Suppress warnings.
CAVEATS
May interfere with programs that handle terminals specially. Prompt detection is heuristic. Some control sequences may not work properly.
HISTORY
rlwrap was written by Hans Lub to add readline support to arbitrary programs. It fills the gap for programs without built-in line editing.
