Pilates
    Preparing search index...

    Interface CellChange

    A single cell-level update to be applied to a terminal frame.

    x and y are 0-indexed (top-left is (0, 0)) — the encoder converts to the 1-indexed coordinates ANSI's CSI cursor-position uses.

    width is 1 for narrow cells and 2 for the leading slot of a wide grapheme (CJK / emoji). The continuation slot of a wide character is never a separate CellChange — the encoder handles the second cell as a side-effect of writing the wide grapheme.

    interface CellChange {
        attrs: number;
        bg: Color | undefined;
        char: string;
        fg: Color | undefined;
        width: 1 | 2;
        x: number;
        y: number;
    }
    Index

    Properties

    Properties

    attrs: number
    bg: Color | undefined
    char: string
    fg: Color | undefined
    width: 1 | 2
    x: number
    y: number