4 ms·
> Surely requiring every program to use something like GNU readline is a bad idea? That's basically how it works now. Kernel's line discipline is awful and nob
by EdiX 11y ago
> Surely requiring every program to use something like GNU readline is a bad idea?
That's basically how it works now. Kernel's line discipline is awful and nobody wants to use it so they build with readline or something equivalent.
You'll notice a program is using the line discipline when the arrow keys print weird characters instead of working cor rectly, rlwrap has been invented for those programs.
The clean/logical/plan9-style solution is having the terminal implement line editing. But that alone would preclude autocompletion and history search from working.