Skip to main content

ImageProtocol enum

Namespace: Arlecchino.Rendering.Terminals · Assembly: Arlecchino.Core

How a picture reaches the terminal. Like GraphSymbols, this is a question of what the terminal can do rather than of taste.

public enum ImageProtocol

Fields

NameValueSummary
Blocks0Cells, two pixels to each: the color of the upper half block and the background behind it. It needs nothing of the terminal beyond color and goes through the ordinary frame diff.
Kitty1The kitty graphics protocol: the pixels themselves, spoken by kitty, WezTerm and Ghostty. A terminal that does not speak it shows the escape sequence as text.
Sixel2Sixel: the older protocol, spoken by Windows Terminal, xterm, foot and WezTerm. Color comes down to a cube of 216, and Glyphs.CellWidth says how large a cell is taken to be.
Auto3The best of what the terminal admitted to when TerminalProbe.Ask asked, preferring kitty over sixel, and ImageProtocol.Blocks when it admitted to nothing. It is the default.