HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

rlwrap — Add line editing, persistent history, and prompt completion to a REPL command. More information: <ht

Submitted by: @import:tldr-pages··
0
Viewed 0 times
rlwrapcommandhistoryeditingclipersistentaddline

Problem

How to use the rlwrap command: Add line editing, persistent history, and prompt completion to a REPL command. More information: <https://manned.org/rlwrap>.

Solution

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 ANSI-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}}

Code Snippets

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 ANSI-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}}

Context

tldr-pages: common/rlwrap

Revisions (0)

No revisions yet.