Raxol.Terminal.Parser.States.CSIEntryState (Raxol v2.0.1)

View Source

Handles the CSI Entry state in the terminal parser. This state is entered after receiving an ESC [ sequence.

Summary

Functions

Handles input in CSI Entry state. Returns the next state and any accumulated data.

Handles input in CSI Entry state with emulator context. Returns {:continue, emulator, parser_state, input} or {:incomplete, emulator, parser_state}.

Functions

handle(byte, data)

@spec handle(byte(), map()) :: {atom(), map()}

Handles input in CSI Entry state. Returns the next state and any accumulated data.

handle(emulator, parser_state, input)

@spec handle(
  Raxol.Terminal.Emulator.t(),
  map(),
  binary()
) ::
  {:continue, Raxol.Terminal.Emulator.t(), map(), binary()}
  | {:incomplete, Raxol.Terminal.Emulator.t(), map()}

Handles input in CSI Entry state with emulator context. Returns {:continue, emulator, parser_state, input} or {:incomplete, emulator, parser_state}.