module Termisu::Input::ModifierBits

Overview

Modifier bit masks for protocol decoding. Defined outside the enum to avoid type coercion issues.

Defined in:

termisu/input/modifier.cr

Constant Summary

MOUSE_ALT = 8
MOUSE_CTRL = 16
MOUSE_SHIFT = 4

Mouse protocol modifier bit masks (used in Cb byte). Different bit positions than XTerm keyboard modifiers.

XTERM_ALT = 2
XTERM_CTRL = 4
XTERM_META = 8
XTERM_SHIFT = 1

XTerm modifier bit masks (used in CSI sequences). XTerm encoding: code = 1 + (shift1 + alt2 + ctrl4 + meta8)