4 ms·
> Yes, but termcap/terminfo are about output, not input. Termcap itself--the older system of the two, and the one that's mostly subsumed by terminfo nowadays--
by zozbot123 8y ago
> Yes, but termcap/terminfo are about output, not input.
Termcap itself--the older system of the two, and the one that's mostly subsumed by terminfo nowadays--supports input-related features already! See e.g. https://www.gnu.org/software/termutils/manual/termcap-1.3/html_mono/termcap.html#SEC37 https://www.gnu.org/software/termutils/manual/termcap-1.3/ht...
Anyway, surely some sort of keyboard raw input exists already, if only so that X can use it? AIUI, X does run without root privileges these days, and keyboard input was never the main obstacle to X running without root - video output was. So, I think the article is not quite right in its assumption that detecting raw keyboard events necessarily involves root-level access.
- cryptonector 8y agoYou are absolutely right. Are there any such features that produce additional in-band data for every keystroke?
- 0x0 8y agoLooks like non-root X still requires the equivalent of root access to the raw input /dev devices - https://wiki.gentoo.org/wiki/Non_root_Xorg#Making_necessary_changes_to_system https://wiki.gentoo.org/wiki/Non_root_Xorg#Making_necessary_...