Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rlwrap: add page #11941

Merged
merged 8 commits into from
Dec 30, 2023
Merged
24 changes: 24 additions & 0 deletions pages/common/rlwrap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# rlwrap

> Add line editing, persistent history and prompt completion to an REPL command.
sohang3112 marked this conversation as resolved.
Show resolved Hide resolved
> More information: <https://github.com/hanslub42/rlwrap>.

- Run an REPL command with line editing, persistent history and prompt completion:
sohang3112 marked this conversation as resolved.
Show resolved Hide resolved

`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 - one of *black*, *red*, *green*, *yellow*, *blue*, *cyan*, *purple (=magenta)* or *white*, or an ANSI-conformant `colour_spec`. An uppercase colour name (Yellow or YELLOW) gives a bold prompt:
kbdharun marked this conversation as resolved.
Show resolved Hide resolved

`rlwrap --prompt-colour {{colour}} {{command}}`