vt_get_shift_state(9)
πΈ 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:
vt_get_leds(9)vt_set_led_state(9)vt_kbd_con_start(9)vt_kbd_con_stop(9)vt_do_diacrit(9)vt_do_kdskbmode(9)vt_do_kdskbmeta(9)vt_do_kdgkbmeta(9)vt_reset_unicode(9)vt_reset_keyboard(9)vt_get_kbd_mode_bit(9)vt_set_kbd_mode_bit(9)vt_clr_kbd_mode_bit(9)
xoxo π β source ./drivers/tty/vt, dated October 2026, page vt_get_shift_state(9). Periodt. π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms