Re:Why Is It So Hard to Detect Keyup Event on Linux?
by leoc on Monday May 17, 2021 @12:06PM
(#27185023)
The original ttys were literally Teletypes https://www.bell-labs.com/usr/dmr/www/picture.html designed to send text directly to another Teletype over a phone line. As such they sent and received sequences of characters, not key events, yes. OFC these are also basically the same ASCII text streams that Unix pipes between shell commands and the file system.
[ Parent
| on HN ]
Re:Why Is It So Hard to Detect Keyup Event on Linux?
by agumonkey on Monday May 17, 2021 @06:40PM
(#27189274)
I get the legacy aspect both in internals of the time and usage. But I'm curious how to upgrade the old way to support finer grained interactions.
Re:Why Is It So Hard to Detect Keyup Event on Linux?
by imtringued on Tuesday May 18, 2021 @07:01AM
(#27193148)
That's simply not possible nor desired. It's like trying to think of a way to make ints support fractions in C without storing a second int for the denominator.
What you really want is that SSH implements support for a remote keyboard so that the application on the other end can simply read local machine key events and this is as far away from "upgrade the old way" as possible.