1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 09:42:07 +02:00
tldr/pages/common/rlwrap.md
Sohang Chopra fdf6549c43
rlwrap: add page (#11941)
* Added rlwrap command

* rlwrap: color prompt: shortened description

* rlwrap: Correct prompt colour usage (added = in command)

* rlwrap: suggestion by vitorhcl: an REPL -> a REPL

* rlwrap: Suggestion by kbdharun

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-12-30 14:02:38 -03:00

24 lines
784 B
Markdown

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