revbank/lib/RevBank
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
..
Cart Tweak output (increase indendation) 2023-12-26 19:33:11 +01:00
Amount.pm Remove unnecessary space in front of non-positive number 2023-12-26 05:47:32 +01:00
Amount.pod typo 2022-06-12 02:34:34 +02:00
Cart.pm Introduce ';' as command/transaction separator 2023-12-26 00:21:01 +01:00
Eval.pm cwd is no longer in @INC in new perl versions 2017-02-18 22:31:19 +01:00
FileIO.pm Explicitly use Perl 5.32 2023-12-12 00:28:17 +01:00
FileIO.pod Implement global advisory lock 2022-08-29 17:50:12 +02:00
Global.pm Remove redundant code 2023-12-25 04:47:27 +01:00
Global.pod Split documentation for RevBank::Global 2023-05-23 12:56:34 +02:00
Messages.pm Explicitly use Perl 5.32 2023-12-12 00:28:17 +01:00
Plugin.pm Support control character escapes, add :AllChars attribute 2023-12-28 03:07:40 +01:00
Plugins.pm undo: deal with checkout exception 2023-12-26 02:08:24 +01:00
Plugins.pod Ignore all hook exceptions except in hook_checkout_prepare 2023-11-24 05:15:22 +01:00
Prompt.pm v6.0.4: use readline's internal loop 2024-02-11 04:14:05 +01:00
TextEditor.pm Explicitly use Perl 5.32 2023-12-12 00:28:17 +01:00
TextEditor.pod bump to v3.5; add built-in editor 2022-08-30 20:45:01 +02:00
Users.pm Explicitly use Perl 5.32 2023-12-12 00:28:17 +01:00
Users.pod Document RevBank::Users (accounts) 2023-11-05 21:19:39 +01:00