blessed-components - v1.20.0
    Preparing search index...

    Interface CodeData

    Stateful data accepted by the Blessed code adapter.

    interface CodeData {
        capabilities?: Pick<TerminalCapabilities, "colorLevel">;
        backgroundTone?: keyof ThemeColors;
        borderTone?: keyof ThemeColors;
        theme?: Theme;
        tone?: keyof ThemeColors;
        align?: TextAlign;
        content: string;
        overflow?: CodeOverflow;
        variant?: CodeVariant;
        omission?: string;
        truncatePosition?: "end" | "middle" | "start";
        width?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    capabilities?: Pick<TerminalCapabilities, "colorLevel">

    Explicit color capability used for deterministic rendering.

    backgroundTone?: keyof ThemeColors

    Semantic background token.

    'background'

    borderTone?: keyof ThemeColors

    Semantic border token.

    'border'

    theme?: Theme

    Semantic terminal theme.

    tone?: keyof ThemeColors

    Semantic foreground token.

    'foreground'

    align?: TextAlign

    Horizontal alignment applied after overflow handling.

    'left'

    content: string

    Inline code content. ANSI sequences and Blessed tags are removed.

    overflow?: CodeOverflow

    Single-line overflow policy.

    'truncate'

    variant?: CodeVariant

    Visual structure.

    'bracketed'

    omission?: string

    Omission marker used by truncate overflow.

    '…'

    truncatePosition?: "end" | "middle" | "start"

    Truncation position used by truncate overflow.

    'end'

    width?: number

    Maximum rendered width measured in terminal cells.