On 2024-08-13 8:07 PM, h...@shaw.ca wrote:
Hi everyone,

Thank Kim et al for the efforts to add line editing to eesh. I'm looking
forward to trying it out, once I can successfully compile it.

A careful read of the code and output of ./configure suggest the option to
enable the new editline support is actually --with-lineedit, this is minor.

The difficultly is that on devuan (debian based), the editline library is
packaged as libedit2, and the development libraries as libedit-dev. pkg-config sees them as `libedit'. I have tried some manipulations of the configure file,
and have made minimal progress.

$sed 's/libeditline/libedit/g' configure.orig > configure && ./configure
This stops pkg-config from complaining, and editline is shown as enabled,
but make fails with
=====
main.c:36:10: fatal error: editline.h: No such file or directory
     36 | #include <editline.h>
        |          ^~~~~~~~~~~~
=====

The only editline.h that apt-file can find is in the unrelated libcwidget-dev package. I had suspected libedit on linux had renamed the editline.h file to readline.h*, but examination of the NetBSD source shows the two readline.h files
are pretty much identical.

What might be my next step? Or does my original assessment have some flaw?

Hi Peter,

There are a number of (similar but different) line editing libraries out there:
editline: https://troglobit.com/projects/editline/
libedit: https://www.thrysoee.dk/editline/
readline: https://tiswww.case.edu/php/chet/readline/rltop.html
and probably others.

The one selected by default by --with-lineedit is editline. On my setup this works fine (using editline 1.17.1). IIRC I did play around with libedit, but had some trouble with it, can't remember what just now.

/Kim


_______________________________________________
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to