Raxol.Terminal.Escape.Parsers.SCSParser (Raxol v2.0.1)
View SourceParser for SCS (Select Character Set) escape sequences.
SCS sequences are used to designate character sets to G0-G3 graphic sets. They follow the pattern ESC ( x, ESC ) x, ESC * x, or ESC + x where the intermediate character determines which G-set to modify.
Summary
Functions
Parses an SCS sequence after the ESC and intermediate character.
Functions
@spec parse(char(), String.t()) :: {:ok, term(), String.t()} | {:incomplete, String.t()} | {:error, atom(), String.t()}
Parses an SCS sequence after the ESC and intermediate character.
Parameters
- intermediate: The intermediate character ('(', ')', '*', '+')
- input: The remaining input after the intermediate
Returns
{:ok, command, remaining}- Successfully parsed command{:incomplete, input}- Input is incomplete{:error, reason, input}- Parse error