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

Grant Erickson <[email protected]> Thu, 14 Dec 2023 22:41:48 -0800
Newsgroups dev.linux.lists.ell
Message-ID <[email protected]>
On Dec 14, 2023, at 3:28 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 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.
> 
> Following features are missing:
> 
> 1) Work with words (delete, move etc.)
> 2) Tab completion
> 3) Hints system
> 
> Following features are left to the user:
> 
> 1) Showing the prompt
> 2) Switching to masked input
> 
> The demo-edit is just for demonstration purposes and requires Curses to
> be available without any autoconf magic.

Marcel,

This looks like it is coming along nicely; the ‘demo-edit’ is very helpful for demonstrating the functionality. On that front, I am surprised that in ’stdin_callback’ that the ‘io’ parameter does not appear to be used.

Beyond that, as with linenoise and libedit, do you anticipate wrapper APIs for working with UTF-8?

Best,

Grant

-- 
Principal
Nuovations

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