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

    Interface RenderCodeOptions

    Options accepted by renderCode.

    interface RenderCodeOptions {
        align?: TextAlign;
        content: string;
        overflow?: CodeOverflow;
        variant?: CodeVariant;
        omission?: string;
        truncatePosition?: "end" | "middle" | "start";
        width?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    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.