nimterm/text_width
This page is generated from the module’s exported API and ## documentation comments.
Terminal display widths.
Procedures
Section titled “Procedures”cellWidth
Section titled “cellWidth”proc cellWidth(rune: Rune): int {.raises: [], tags: [], forbids: [].}Returns: int.
Arguments
Section titled “Arguments”| Name | Type | Default |
|---|---|---|
rune |
Rune |
displayWidth
Section titled “displayWidth”proc displayWidth(text: string): int {.raises: [], tags: [], forbids: [].}Returns: int.
Arguments
Section titled “Arguments”| Name | Type | Default |
|---|---|---|
text |
string |