Exchange line editor liner with github.com/chzyer/readline #4

Closed
opened 2020-07-08 15:22:59 +02:00 by ni · 7 comments
ni commented 2020-07-08 15:22:59 +02:00 (Migrated from git.w21.org)

liner has a larger feature set, but is quirky sometimes; also, while x/crypt/ssh/terminal must be installed separately, too, it is not an external dependency like liner is.

`liner` has a larger feature set, but is quirky sometimes; also, while `x/crypt/ssh/terminal` must be installed separately, too, it is not an *external* dependency like `liner` is.
ni commented 2020-07-08 15:24:15 +02:00 (Migrated from git.w21.org)

And, switching raw mode on/off directly before reading a line should also revolce the lic issue #1.

And, switching raw mode on/off directly before reading a line should also revolce the `lic` issue #1.
ni commented 2020-07-12 12:44:25 +02:00 (Migrated from git.w21.org)

The above comment turned out to be too optimistic, as that didn't help either. Also, raw mode wasn't switched on (explicitly) at all, so switching to cooked mode wasn't what was needed anyway. The bug seems to be in liner itself.

Anyway, to change horses mid-stream, I decided not to switch to x/crypt/ssh/terminal (which was just too frugal), but rather attempt it with github.com/chyzer/readline, which has at least a history. Or so it claims; let's see how I can get that one going. Apparently saving the history to a file doesn't happen on its own, as I thought was implied by the documentation.

The above comment turned out to be too optimistic, as that didn't help either. Also, raw mode wasn't switched on (explicitly) at all, so switching to cooked mode wasn't what was needed anyway. The bug seems to be in liner itself. Anyway, to change horses mid-stream, I decided not to switch to `x/crypt/ssh/terminal` (which was just too frugal), but rather attempt it with `github.com/chyzer/readline`, which has at least a history. Or so it claims; let's see how I can get that one going. Apparently saving the history to a file doesn't happen on its own, as I thought was implied by the documentation.
ni commented 2020-07-12 13:36:48 +02:00 (Migrated from git.w21.org)

changed title from Exchange line editor liner with {-x/crypt/ssh/terminal-} to Exchange line editor liner with {+github.com/chzyer/readline+}

changed title from **Exchange line editor liner with {-x/crypt/ssh/terminal-}** to **Exchange line editor liner with {+github.com/chzyer/readline+}**
ni commented 2020-07-12 13:37:20 +02:00 (Migrated from git.w21.org)

Changed title to reflect new goal

Changed title to reflect new goal
ni commented 2020-07-12 13:39:09 +02:00 (Migrated from git.w21.org)

mentioned in commit 0e3ad67fda

mentioned in commit 0e3ad67fda0dd7218ef5b645df42cf9df28ff372
ni commented 2020-07-12 13:40:36 +02:00 (Migrated from git.w21.org)

closed by 0e3ad67fda

closed by 0e3ad67fda0dd7218ef5b645df42cf9df28ff372
ni commented 2020-07-12 13:40:59 +02:00 (Migrated from git.w21.org)

closed

closed
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lisp/lingo#4
No description provided.