Why Is It So Hard to Detect Keyup Events on Linux?
I mean, that there&#x27;s no key up event in tty context goes back to the beginning of time, and is not Linux&#x27;s fault, and not even Unix&#x27;s (nor VMS&#x27;s) fault, or anyone&#x27;s fault, because this all works the way it does because of how terminals worked, and they worked the way they did because it was <i>simple</i>.<p>If, in the late 70s, key up events in tty context had been important, then terminal vendors would have developed an escape sequence system for expressing those.  But it wasn&#x27;t, so they didn&#x27;t.<p>So, yes, it&#x27;s absolutely impossible to get key up events in tty context, and at this point it will almost certainly stay that way forever, as it&#x27;s too late to retrofit terminal emulators, drivers, and applications to understand whatever protocol for communicating key up events.  (The right way to do this would be to develop an escape sequence protocol that the tty&#x2F;pty drivers could decode and turn events into out-of-band events to be delivered via ioctl()s, that way applications that don&#x27;t care about key up events don&#x27;t see them and don&#x27;t need to be modified.  But who is going to do all that work?)