3 ms·
Perhaps this is nitpicking, but I don't think the issue here is "data stream" vs. not-"data stream". Perhaps a better distinction is "data stream of characters
by CoastalCoder 5y ago
Perhaps this is nitpicking, but I don't think the issue here is "data stream" vs. not-"data stream".
Perhaps a better distinction is "data stream of characters" vs. "data stream that can express key events (and perhaps other stuff as well)".
- swiley 5y agoThis 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.
- icedchai 5y agoIt'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.)