1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-04 14:35:24 +02:00
tldr/pages/common/rlwrap.md
2025-06-02 02:01:35 +03:00

24 lines
810 B
Markdown

# rlwrap
> Add line editing, persistent history and prompt completion to a REPL command.
> More information: <https://manned.org/rlwrap>.
- 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:
`rlwrap {{[-r|--remember]}} {{command}}`
- Better prompt completion if prompts contain ANSI colour codes:
`rlwrap {{[-A|--ansi-colour-aware]}} {{command}}`
- Enable filename completion (case sensitive):
`rlwrap {{[-c|--complete-filenames]}} {{command}}`
- Add coloured prompts, use colour name, or an ASCI-conformant colour specification. Use an uppercase colour name for bold styling:
`rlwrap {{[-p|--prompt-colour=]}}{{black|red|green|yellow|blue|cyan|purple|white|colour_spec}} {{command}}`