Comments (6)
Actually it is true, the libraries have a common ancestry, but one was adopted into Minix from early NetBSD (this one) and the other evolved in NetBSD and was later allowed outside in the greater UNIX community.
Exactly what is your bug report, apart from editline not linking properly, out of the box, on your platform?
from editline.
what i was trying to point out is that libedit (at least the 2012.something version used in sabotage), does not depend on ncurses, but on libtermcap, which is usually supplied by ncurses, but it also works with rms' original standalone version (which is tiny):
https://github.com/sabotage-linux/sabotage/blob/master/pkg/termcap
( http://ftp.gnu.org/gnu/termcap/termcap-1.3.1.tar.gz )
from editline.
Sure, libncurses is not really required. I guess libtinfo (from ncurses) is all what's required, which I what I made troglobit/mg@ea0aaa3 depend on? The GNU termcap library was superseded by libtinfo several years ago, but sure, the configure script can be improved -- pull requests are most welcome ;-)
Anyway, in the embedded system we run at work¹ we only have the GLIBC terminfo stuff available, so you don't even really need ncurses/termpcap to run editline. It can be run on really bare-bones systems.
¹) http:/www.westermo.com
from editline.
Still, having thought about this some more, and checked the source, I'm a bit miffed about the subject of this issue, you're implying that I'm lying about something?
The standard C library, which by POSIX standards, supports terminfo, also supports editline. So you don't need Ncurses or "rms' original standalone" termcap. I know this for a fact having run an embedded Linux OS for almost 10 years now without ncurses/termcap with editline ...
from editline.
I'm a bit miffed about the subject of this issue, you're implying that I'm lying about something?
sorry, i should have said "incorrect" instead of "untrue", since the actual dependency is not "ncurses", but "libtermcap, usually provided by ncurses"
i guess libtinfo (from ncurses) is all what's required
historically, it's libtermcap, and libtinfo is only available when ncurses was built with the "split libraries" option (not default).
but yeah, since ncurses doesnt create a libtermcap symlink by default, for a library/app trying to use tgetent() and friends, a configure check is needed, like:
... whether tgetent() is provided by -ltermcap ... no
... whether tgetent() is provided by -lncurses ... no
... whether tgetent() is provided by -lterminfo ... no
... whether tgetent() is provided by -ltinfo ... yes
from editline.
Followup to earlier discussion in e02339c, check for tgetent() when --enable-termcap
is given to the configure script.
from editline.
Related Issues (20)
- Pressing Ctrl+C when searching sends SIGINT after next command HOT 1
- Support for Latin-1? HOT 1
- Cannot find sgstat.h or modes.h. HOT 2
- Request for UTF-8 support HOT 16
- read() returns greater than 1 with some C standard library implementations (i.e. newlib) HOT 13
- Example Step 2 needs header file <stdio.h> HOT 1
- Inclusion in a debian repository HOT 4
- Run with mpi HOT 4
- Address sanitizer reports error HOT 12
- How to call function 'el_bind_key' HOT 3
- The process that uses editline does not respect CTRL+Z HOT 1
- Request for \1 and \2 (RL_PROMPT_START_IGNORE, RL_PROMPT_END_IGNORE) support HOT 1
- ctrl-v for verbatim input
- Prompt not redisplayed after displaying completion possibilities HOT 3
- Need to press CTRL+Z twice to have process (that consumes editline) to go in the background HOT 1
- rl_point is always zero HOT 3
- fileman.c example. Error free(): double free detected in tcache 2 HOT 1
- Can you state in the source it's licensed under Apache-2.0? HOT 3
- Does not compile cleanly HOT 6
- Prompt not displayed on non-interactive sessions, inconsistent with GNU readline HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from editline.