term.mods_to_string

term

mods_to_string(mods) -> combination

Convert a modifier bitmask to a human-readable string

Maps a KKBP modifier bitmask to a "+" separated string of modifier names. Bit values: SHIFT=1, ALT=2, CTRL=4, SUPER=8, HYPER=16, META=32, CAPS_LOCK=64, NUM_LOCK=128. Example: mods_to_string(5)"SHIFT+CTRL"