Raxol.Terminal.ANSI.SixelGraphics (Raxol v0.4.0)
View SourceHandles Sixel graphics for the terminal emulator. Supports:
- Sixel color palette management
- Sixel image rendering
- Sixel image scaling
- Sixel image positioning
- Sixel image attributes
Summary
Functions
Creates a new Sixel state with default values.
Processes a Sixel sequence (DCS P...q DATA ST) and returns the updated state.
Types
@type sixel_attribute() :: :normal | :double_width | :double_height | :double_size
Functions
@spec new() :: %Raxol.Terminal.ANSI.SixelGraphics{ attributes: term(), current_color: term(), palette: term(), pixel_buffer: term(), position: term(), sixel_cursor_pos: term() }
Creates a new Sixel state with default values.
@spec process_sequence(sixel_state(), binary()) :: {sixel_state(), :ok | {:error, term()}}
Processes a Sixel sequence (DCS P...q DATA ST) and returns the updated state.
The pixel data is stored in state.pixel_buffer
.