Re:Why Is It So Hard to Detect Keyup Event on Linux?
by swiley on Monday May 17, 2021 @11:42AM
(#27184729)
This is correct, plan9 continues using a data stream but puts events in the data stream rather than characters.
Even on Linux the low level kernel API for getting keypress events works this way.
Re:Why Is It So Hard to Detect Keyup Event on Linux?
by icedchai on Monday May 17, 2021 @12:32PM
(#27185310)
It's really a lower level protocol issue. The serial terminals upon which the "tty" model is based had no event stream outside of characters being sent or received. There are events provided by the serial port itself and delivered out-of-band though (example: modem DCD line drops, SIGHUP is generated.)
Perhaps a better distinction is "data stream of characters" vs. "data stream that can express key events (and perhaps other stuff as well)".