GateLinker · @gatelinker
6 followers · 39 posts · Server fosstodon.org

Simple things can be complex:
Reading a single key event from the keyboard is quite hard. Standard C and OS settings
will buffer key events until a line is complete .
And special keys like arrows or ESC have native non-standard encodings like VKEY on , escape codes on , AKEYCODE on , multibyte codes from the layer or scan codes from or the hardware.

But it's fun to learn about what's really going on beyond libraries like `ncurses`.

#ldisc #windows #vt100 #posix #android #bios #uefi

Last updated 2 years ago