Raxol.Terminal.Commands.DeviceHandlers (Raxol v0.5.0)
View SourceHandles device status and attribute related CSI commands.
This module contains handlers for device status reports (DSR) and device attributes (DA). Each function takes the current emulator state and parsed parameters, returning the updated emulator state.
Summary
Functions
@spec handle_c(Raxol.Terminal.Emulator.t(), [integer()], String.t()) :: {:ok, Raxol.Terminal.Emulator.t()} | {:error, atom(), Raxol.Terminal.Emulator.t()}
Handles Device Attributes (DA - 'c')
@spec handle_n(Raxol.Terminal.Emulator.t(), [integer()]) :: {:ok, Raxol.Terminal.Emulator.t()} | {:error, atom(), Raxol.Terminal.Emulator.t()}
Handles Device Status Report (DSR - 'n')