Skip to content

Commit

Permalink
rlwrap: add page (#11941)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
sohang3112 and kbdharun committed Dec 30, 2023
1 parent 2100122 commit fdf6549
Showing 1 changed file with 24 additions and 0 deletions.
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 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}}`

0 comments on commit fdf6549

Please sign in to comment.