From fdf6549c43b01fbd0ac5370ca0bd0d4119eccf2b Mon Sep 17 00:00:00 2001 From: Sohang Chopra Date: Sat, 30 Dec 2023 22:32:38 +0530 Subject: [PATCH] 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 --------- Co-authored-by: K.B.Dharun Krishna --- pages/common/rlwrap.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/rlwrap.md diff --git a/pages/common/rlwrap.md b/pages/common/rlwrap.md new file mode 100644 index 000000000..7a0889dac --- /dev/null +++ b/pages/common/rlwrap.md @@ -0,0 +1,24 @@ +# rlwrap + +> Add line editing, persistent history and prompt completion to a REPL command. +> More information: . + +- 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}}`