$ rezi
Backend

Terminal Capabilities

The Zireael engine detects terminal capabilities at startup and surfaces them to the framework via the TerminalCaps type.

The Zireael engine detects terminal capabilities at startup and surfaces them to the framework via the TerminalCaps type.

Detected Capabilities

CapabilityTypeDescription
colorModeColorModeColor depth (none, 16, 256, truecolor)
supportsMousebooleanWhether the terminal supports mouse tracking
supportsBracketedPastebooleanWhether bracketed paste mode is available
supportsFocusEventsbooleanWhether terminal focus/blur events are reported

Mouse Support Detection

supportsMouse indicates whether the terminal can report mouse events (clicks, scroll wheel, movement, drag). When true, Rezi automatically enables mouse tracking and routes mouse events to widgets.

Most modern terminals support mouse tracking, including iTerm2, Alacritty, kitty, WezTerm, Windows Terminal, GNOME Terminal, and Konsole. Some legacy terminals or minimal configurations may not.

When supportsMouse is false, Rezi operates in keyboard-only mode. No special handling is needed — all interactive widgets work with keyboard navigation.

Usage

Rezi uses these capabilities to:

  • decide rendering strategies (color depth, optimized scroll sequences)
  • enable or disable mouse tracking
  • select feature fallbacks for unsupported capabilities

See also:

On this page