enum
Tput::Modifiers
Overview
Keyboard modifiers, as a bitmask.
The bit order matches the modifier encoding shared by xterm
(modifyOtherKeys) and the kitty keyboard protocol: the on-the-wire value
is 1 + bitmask, with shift = 1, alt = 2, ctrl = 4, super = 8,
hyper = 16, meta = 32, caps_lock = 64, num_lock = 128. So a raw
modifier parameter Pm maps to Modifiers.new(Pm - 1) (see
KeyEvent.from_csi).
Defined in:
tput/key_event.crEnum Members
-
Shift =
1 -
Alt =
2 -
Ctrl =
4 -
Super =
8 -
Hyper =
16 -
Meta =
32 -
CapsLock =
64 -
NumLock =
128 -
None =
0 -
All =
255
Instance Method Summary
-
#alt?
Returns
trueif this enum value containsAlt -
#caps_lock?
Returns
trueif this enum value containsCapsLock -
#ctrl?
Returns
trueif this enum value containsCtrl -
#hyper?
Returns
trueif this enum value containsHyper -
#meta?
Returns
trueif this enum value containsMeta - #none?
-
#num_lock?
Returns
trueif this enum value containsNumLock -
#pick_nav(base : Key, shift : Key, alt : Key, ctrl : Key) : Key
Picks among the four legacy nav-key variants (base/shift/alt/ctrl) after dropping the ambient lock bits.
-
#shift?
Returns
trueif this enum value containsShift -
#super?
Returns
trueif this enum value containsSuper