diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-08-03 06:50:38 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-08-03 06:50:38 -0700 |
commit | cfd11a27aed69fec13d76135b45859554bf1f627 (patch) | |
tree | 8b0e771721d88ca2ed362849399ac89a4a590c1b /tests | |
parent | 3f69d61563276436bef7c17296a1eb4fd8b15164 (diff) | |
download | txr-cfd11a27aed69fec13d76135b45859554bf1f627.tar.gz txr-cfd11a27aed69fec13d76135b45859554bf1f627.tar.bz2 txr-cfd11a27aed69fec13d76135b45859554bf1f627.zip |
listener: prompt feature for plain mode.
The :prompt-on command will enable prompting in plain mode.
* linenoise/linenoise.c (struct lino_state): New member, show_prompt.
(line_enable_noninteractive_prompt): New function.
(linenoise): In the plain mode loop, the show_prompt flag is on, show
the prompt. For continuation lines, show a condensed prompt, which
consists of the suffix of the full prompt, starting on the last
non-whitespace character.
* linenoise/linenoise.h (lino_enable_noninteractive): Declared.
* parser.c (repl): Implement :prompt-on command which enables the
above mode.
* txr.1: Documented.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions