Reference

XkbGetIndicatorState(3) on Linux

The text 8d8c0f7bd913, as Debian 10 (Buster) shipped it.

Obtains the current state of the keyboard indicators

XkbGetIndicatorState(3) on Linux now