Raxol.Terminal.Commands.OSCHandlers.Cursor (Raxol v0.5.0)
View SourceHandles cursor and font-related OSC commands.
This handler manages cursor properties and font settings, including:
- Cursor color
- Cursor style
- Cursor blink state
- Font family and size
Supported Commands
- OSC 12: Set/Query cursor color
- OSC 50: Set/Query font
- OSC 112: Reset cursor color
Summary
Functions
Handles OSC 12 command to set/query cursor color.
Handles OSC 50 command to set/query font.
Handles OSC 112 command to reset cursor color.
Functions
@spec handle_12(Raxol.Terminal.Emulator.t(), String.t()) :: {:ok, Raxol.Terminal.Emulator.t()} | {:error, term(), Raxol.Terminal.Emulator.t()}
Handles OSC 12 command to set/query cursor color.
@spec handle_50(Raxol.Terminal.Emulator.t(), String.t()) :: {:ok, Raxol.Terminal.Emulator.t()} | {:error, term(), Raxol.Terminal.Emulator.t()}
Handles OSC 50 command to set/query font.
Command Format
- 50;? - Query current font
- 50;family - Set font family
- 50;family;size - Set font family and size
- 50;family;size;style - Set font family, size, and style
Where:
- family: Font family name
- size: Font size in points
- style: Font style (normal, bold, italic)
@spec handle_112(Raxol.Terminal.Emulator.t(), String.t()) :: {:ok, Raxol.Terminal.Emulator.t()} | {:error, term(), Raxol.Terminal.Emulator.t()}
Handles OSC 112 command to reset cursor color.