Skip to content
ConsoleMonster
Enum

ImageProtocol

ConsoleMonster.Capabilities

Namespace
ConsoleMonster.Capabilities
Assembly
ConsoleMonster
Base
Enum
Implements
IComparable ISpanFormattable IFormattable IConvertible
Modifiers
sealed

How an inline image can be drawn. TerminalProfile.ImageProtocol reports the protocol an output may use: redirected, CI, plain, no-colour and 16-colour output always get ImageProtocol.None.

Inheritance

  • Enum
  • ImageProtocol

Usage

Explore 7 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 1

Values

public const ImageProtocol None #

No pixels: a text placeholder such as [image: chart.png 560x272] (no colour, redirected or CI output).

Value: 0
public const ImageProtocol HalfBlock #

Half blocks (▀) with a foreground and a background colour per cell, on any 256-colour or truecolor terminal.

Value: 1
public const ImageProtocol Sixel #

DEC Sixel graphics (Windows Terminal 1.22 and later), drawn on Windows Terminal's 10×20-pixel sixel cell.

Value: 2
public const ImageProtocol ITerm2 #

The iTerm2 inline image protocol, OSC 1337 File (iTerm2, WezTerm).

Value: 3
public const ImageProtocol Kitty #

The Kitty graphics protocol (Kitty, Ghostty).

Value: 4