troglobit / editline

A small replacement for GNU readline() for UNIX
https://troglobit.com/projects/editline/
Other
282 stars 58 forks source link

missing functions to use editline as drop-in replacement for readline with gdb 7.6 #9

Open rofl0r opened 8 years ago

rofl0r commented 8 years ago

gdb 7.6 seems to be the most elaborate readline user in sabotage linux, but it can be tricked, to link against libedit instead of readline, and i hoped as well against editline...

Here's a list of missing functions:

troglobit commented 8 years ago

Wow, glad to see someone trying to use editline as a drop-in replacement for GNU readline! :-)

The editline library was never intended as a GNU readline() replacement. And although I've considered myself implementing the necessary bits and bobs for GDB to work, I never found the time during my ten years maintaining this project.

However, I would greatly appreciate any and all patches to help reach that target for editline, since we all would greatly benefit from a truly FREE readline() replacement!

rofl0r commented 8 years ago

yeah, having a slim drop-in replacement for the utterly bloated readline would be very nice, since it's unlikely that the GNU guys will ever switch to something else, and libedit is also rather bloated.

troglobit commented 8 years ago

Yep, that'd be nice. Plain termios support for all, I say :-)

troglobit commented 6 years ago

Update: edited original report slightly so it can be used as a TODO list. Some functions have now been implemented, checked.

troglobit commented 6 years ago

Update: two new functions/callbacks added.

firasuke commented 4 years ago

Any updates on this?

troglobit commented 4 years ago

Not much no.

Just to be clear, the point of editline is not to be a replacement for alll functions in readline. If we can replace just enough to be a suitable alternative, fine, but if the size skyrockets and requirements on external libraries (not libc, but ncurses) sneak in, well then we're off the mark completely. So for me, this issue serves only as a reminder; to check against when refactoring/adding features to see if the APIs listed here can be wrangled in there without much extra effort.

firasuke commented 4 years ago

I see.

Thanks for the update!