Input.CapsSourceTerminal capability responses.
Capability events are terminal responses to control sequence queries. They arrive asynchronously and are routed to a separate callback by Parser; they never appear in the user-facing event stream.
The type for DEC private mode status responses (DECRPM). modes holds (mode, value) pairs following the DEC convention: 0 or 3 for disabled, 1 or 2 for enabled.
equal_mode_report a b is true iff a and b are structurally equal.
pp_mode_report formats mode reports for debugging.
type event = | Device_attributes of int listDevice Attributes (DA/DA2/DA3) response payload.
*)| Mode_report of mode_reportDEC mode status report (DECRPM).
*)| Pixel_resolution of int * intTerminal pixel dimensions (width_px, height_px) from CSI 4 ; height ; width t.
| Cursor_position of int * intCursor position (row, col), 1-based. Row 1 is the top line, column 1 is the leftmost column.
| Xtversion of stringXTerm XTVERSION response (DCS > | ... ST).
| Kitty_graphics_reply of stringKitty graphics response (APC G ... ST).
*)| Kitty_keyboard of {}Kitty keyboard protocol query response CSI ? level [; flags] u. level is non-zero when the protocol is active. flags is the optional terminal-reported bitfield.
| Color_scheme of [ `Dark | `Light | `Unknown of int ]Color scheme DSR response CSI ? 997 ; value n, the reply to the CSI ? 996 n query. Value 1 is dark, 2 is light.
The type for terminal capability events.
equal_event a b is true iff a and b are structurally equal.
pp_event formats capability events for debugging.