Skip to content

nimterm/text_width

This page is generated from the module’s exported API and ## documentation comments.

Terminal display widths.

proc cellWidth(rune: Rune): int {.raises: [], tags: [], forbids: [].}

Returns: int.

Name Type Default
rune Rune

View source

proc displayWidth(text: string): int {.raises: [], tags: [], forbids: [].}

Returns: int.

Name Type Default
text string

View source