3 ms·
> Surely requiring every program to use something like GNU readline is a bad idea? Moving the line discipline out of kernel mode into application mode does not
by JdeBP 11y ago
> Surely requiring every program to use something like GNU readline is a bad idea?
Moving the line discipline out of kernel mode into application mode does not necessitate that every program have an individual copy of the code. As already pointed out, in operating systems that do this the line discipline analogue is encapsulated within a daemon that presents the terminal character devices (or analogues thereto) to the rest of the system. The programs using the terminal think that they are talking to a terminal device in the ordinary (usually, but not necessarily) POSIX-General-Terminal-Interface-like way. As mentioned, in the Hurd this daemon is the /hurd/term daemon. In Windows NT it is the CSRSS daemon, or a CONHOST.