3 ms·
> I agree it should be done in user space, but how? Surely requiring every program to use something like GNU readline is a bad idea? Not full readline, but lib
by JoshTriplett 11y ago
> I agree it should be done in user space, but how? Surely requiring every program to use something like GNU readline is a bad idea?
Not full readline, but libtinfo, or a similar library that reads a terminfo database. And the standard C library could handle this by default for "cooked" input devices.
- marvy 11y agoI find this idea not very attractive. That means any program that reads from stdin has a dependency on some random database. Even cat, or grep. (You could argue that grep needs this anyway to color things, but still.)
- JoshTriplett 11y agoNot every program that reads from stdin, just every program that wants stdin from a "cooked" TTY. Many programs can just perform raw reads.