Rezi
    Preparing search index...

    Function truncateWithEllipsis

    • Truncate text to fit within maxWidth cells, appending ellipsis if needed. Returns original text if it fits.

      Parameters

      • text: string

        The text to truncate

      • maxWidth: number

        Maximum width in terminal cells

      Returns string

      Truncated text with ellipsis, or original if it fits