Re: [RFC] edit: Add basic support for input line editing

Grant Erickson <[email protected]> Wed, 13 Dec 2023 13:40:16 -0800
Newsgroups dev.linux.lists.ell
Message-ID <[email protected]>
On Dec 13, 2023, at 1:23 PM, Marcel Holtmann <[email protected]> wrote:
> This allows for simple line editing with history capabilities. On
> purpose this has no concept of terminal input or terminal output and
> just allows manipulation of an internal wide character string.
> 
> The history storing and loading is currently missing, but would be easy
> to add. The other two items are missing completion and hints handling.
> 
> This feature is not yet complete, but good enough for a first review and
> a sample application using it in a curses environment will follow.
> 
> The debug option is something that might need to be removed or at least
> changed a little bit, but right now it is nice to see the internal
> states.

Marcel,

Any reason not to build on / improve linenoise or to put a neutralizing wrapper around libedit / readline as ntp did / does?

Each have their deficiencies, of course. However, it seems like, at least linenoise and libedit are close enough where a delta would be smaller than a rewrite-from-scratch.

Best,

Grant

-- 
Principal
Nuovations

[email protected]
http://www.nuovations.com/