TerminalCapabilities
Namespace: Hex1b
Assembly: Hex1b.dll
Capabilities that inform how Hex1bTerminal optimizes output and what features are available.
public record TerminalCapabilities : IEquatable<TerminalCapabilities>Inheritance
Object → TerminalCapabilities
Implements
Properties
ActualCellPixelWidth
Actual (possibly fractional) width of a terminal cell in pixels.
Returns: Double
public double ActualCellPixelWidth { get; init; }CellPixelHeight
Height of a terminal character cell in pixels. Used for Sixel graphics scaling. Default is 20 pixels.
Returns: Int32
public int CellPixelHeight { get; init; }CellPixelWidth
Width of a terminal character cell in pixels. Used for Sixel graphics scaling. Default is 10 pixels.
Returns: Int32
public int CellPixelWidth { get; init; }DefaultBackground
Default background color as RGB (0xRRGGBB). Used when responding to OSC 11 color queries.
Returns: Int32
public int DefaultBackground { get; init; }DefaultForeground
Default foreground color as RGB (0xRRGGBB). Used when responding to OSC 10 color queries.
Returns: Int32
public int DefaultForeground { get; init; }EffectiveCellPixelWidth
Gets the actual cell pixel width, using integer width as fallback.
Returns: Double
public double EffectiveCellPixelWidth { get; }HandlesAlternateScreenNatively
Whether the presentation adapter handles alternate screen buffer save/restore natively.
Returns: Boolean
public bool HandlesAlternateScreenNatively { get; init; }Minimal
Minimal capabilities (dumb terminal).
Returns: TerminalCapabilities
public static TerminalCapabilities Minimal { get; }Modern
Default capabilities for a modern terminal.
Returns: TerminalCapabilities
public static TerminalCapabilities Modern { get; }Supports256Colors
Presentation supports 256 colors.
Returns: Boolean
public bool Supports256Colors { get; init; }SupportsAlternateScreen
Presentation supports alternate screen buffer.
Returns: Boolean
public bool SupportsAlternateScreen { get; init; }SupportsBracketedPaste
Presentation supports bracketed paste mode.
Returns: Boolean
public bool SupportsBracketedPaste { get; init; }SupportsDeltaProtocol
Presentation understands Hex1b delta protocol (not raw ANSI). Enables significant bandwidth optimization.
Returns: Boolean
public bool SupportsDeltaProtocol { get; init; }SupportsKgp
Presentation supports Kitty Graphics Protocol (KGP) for inline image display.
Returns: Boolean
public bool SupportsKgp { get; init; }SupportsMouse
Presentation supports mouse tracking.
Returns: Boolean
public bool SupportsMouse { get; init; }SupportsRetroactiveVariationSelectors
Whether the terminal supports retroactive variation selector width changes.
Returns: Boolean
public bool SupportsRetroactiveVariationSelectors { get; init; }SupportsSixel
Presentation supports Sixel graphics.
Returns: Boolean
public bool SupportsSixel { get; init; }SupportsStyledUnderlines
Presentation supports styled underlines (SGR 4:x — curly, dotted, dashed). Modern terminals like kitty, WezTerm, iTerm2 support this. When false, curly/dotted/dashed underlines fall back to single underline.
Returns: Boolean
public bool SupportsStyledUnderlines { get; init; }SupportsTrueColor
Presentation supports true color (24-bit RGB).
Returns: Boolean
public bool SupportsTrueColor { get; init; }SupportsUnderlineColor
Presentation supports colored underlines (SGR 58). When false, underlines use the foreground color.
Returns: Boolean
public bool SupportsUnderlineColor { get; init; }