Raxol.Terminal.ANSI.Behaviours.KittyGraphics behaviour
(Raxol Terminal v2.6.0)
Copy Markdown
View Source
Behaviour for Kitty graphics protocol support.
The Kitty Graphics Protocol enables pixel-level graphics rendering with superior features to Sixel including native animation support, better compression, and more flexible placement.
Summary
Types
@type action() :: :transmit | :display | :delete | :query
@type compression() :: :none | :zlib
@type format() :: :rgb | :rgba | :png
@type t() :: map()
Callbacks
@callback delete_image(t(), non_neg_integer()) :: t()
@callback new() :: t()
@callback new(pos_integer(), pos_integer()) :: t()
@callback query_image(t(), non_neg_integer()) :: {:ok, map()} | {:error, term()}
@callback supported?() :: boolean()