struct

Glimmer::Style::ANSIString::AnsiStateMachine

Inherits Struct < Value < Object

ANSI escape sequence state machine for parsing CSI and OSC sequences.

Shared logic for visible_width and truncate operations.

Constructors

Instance methods

in_csi=(in_csi : Bool)
Source
in_csi?
Source
in_osc=(in_osc : Bool)
Source
in_osc?
Source
initialize
Source
prev_escape=(prev_escape : Bool)
Source
prev_escape?
Source
process(char : Char) : Bool

Processes a character and updates state. Returns true if the character

is part of an escape sequence (should be skipped/kept but not counted).

Source