window:keyboard_modifiers()¶
Since: Nightly Builds Only
The functionality described in this section requires a nightly build of wezterm. You can obtain a nightly build by following the instructions from the Download section.
Returns two values; the keyboard modifiers and the key status leds.
Both values are exposed to lua as strings with |
-delimited values
representing the various modifier keys and keyboard led states:
- Modifiers - is the same form as keyboard assignment modifiers
- Leds - possible flags are
"CAPS_LOCK"
and"NUM_LOCK"
. Note that macOS doesn't have a num lock concept.
This example shows the current modifier and led status in the right status area: