2025-03-14 21:59:59 -06:00
|
|
|
# rlwrap
|
|
|
|
|
|
|
|
|
|
> Add line editing, persistent history and prompt completion to a REPL command.
|
2025-07-24 22:27:13 -06:00
|
|
|
> More information: <https://manned.org/rlwrap>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Run a REPL command with line editing, persistent history and prompt completion:
|
|
|
|
|
|
|
|
|
|
`rlwrap {{command}}`
|
|
|
|
|
|
|
|
|
|
- Use all words seen on input and output for prompt completion:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`rlwrap {{[-r|--remember]}} {{command}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Better prompt completion if prompts contain ANSI colour codes:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`rlwrap {{[-A|--ansi-colour-aware]}} {{command}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Enable filename completion (case sensitive):
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`rlwrap {{[-c|--complete-filenames]}} {{command}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Add coloured prompts, use colour name, or an ASCI-conformant colour specification. Use an uppercase colour name for bold styling:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`rlwrap {{[-p|--prompt-colour=]}}{{black|red|green|yellow|blue|cyan|purple|white|colour_spec}} {{command}}`
|