Commit graph

7 commits

Author SHA1 Message Date
Juerd Waalboer
3b6f11f0dd idle: suspend beeping on text input (cursor move) 2024-11-27 02:49:20 +01:00
Juerd Waalboer
6c74097707 v6.1.2: fix retry prompt
Broken since 2b0f8feb.
2024-04-25 01:08:15 +02:00
Juerd Waalboer
c7c7977a80 Fix bug: double entries in history
Introduced in 2b0f8feb.
2024-04-03 00:44:14 +02:00
Juerd Waalboer
2b0f8febf0 v6.0.4: use readline's internal loop
This fixes the bug that empty lines would be inserted after each prompt,
starting from the first use of ^D.

Readline considers ^D end-of-file even when it's not, and for whatever
reason then adds a \n after BRACK_PASTE_FINI, which results in empty
lines after subsequent prompts.

With readline's internal loop, rl_found_eof gets reset to false, but
users of a custom loop don't get that luxury, and Term::ReadLine::Gnu
doesn't expose rl_found_eof (which was added to readline's API only a
few years ago) to do it manually.

One workaround, used briefly but not committed, would be to disable
bracketed paste.

A better workaround, as implemented by this commit, is to abandon the
custom loop and use readline's blocking call instead.
2024-02-11 04:14:05 +01:00
Juerd Waalboer
9c779d022a Whitespace 2023-12-28 21:02:07 +01:00
Juerd Waalboer
71d2179ea2 Better cursor position after input syntax error 2023-12-28 20:38:37 +01:00
Juerd Waalboer
0b2ea27117 Move prompt code to RevBank::Prompt
Wanted to move split_input() to a package for unit testing, thought I'd
move prompt() too since the main executable has become messy, and this
would be a good first step in resolving that.
2023-12-28 03:45:28 +01:00