vt_get_shift_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

vt_get_shift_state β€” shift bit state. This one's from the Kernel API Manual, and it's giving tiny-but-iconic function energy. πŸ’…

✨ SYNOPSIS ✨

int vt_get_shift_state (void );

πŸŽ€ ARGUMENTS πŸŽ€

  • void β€” no arguments, bestie. Not a single one. 🫢

πŸ”₯ DESCRIPTION πŸ”₯

Okay so vt_get_shift_state reports the shift bits from the keyboard state. That's the whole vibe. We have to export this to support some oddities in the vt layer β€” literally that's the reason, no cap. πŸ’–

🌈 SEE ALSO 🌈

Kernel file ./drivers/tty/vt/keyboard.c, plus the whole friend group:


xoxo πŸ’‹ β€” source ./drivers/tty/vt, dated October 2026, page vt_get_shift_state(9). Periodt. πŸŽ€

πŸ“¦ where this page comes from