Raxol.Terminal.Commands.OSCHandlers.Cursor (Raxol v0.5.0)

View Source

Handles 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

handle_12(emulator, data)

Handles OSC 12 command to set/query cursor color.

handle_50(emulator, data)

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)

handle_112(emulator, data)

@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.