* Returns the screen width of the string in columns, i.e. accounting for * characters that may occupy more than one character width in the terminal.
()
| 179 | * characters that may occupy more than one character width in the terminal. |
| 180 | */ |
| 181 | getWidth(): number { |
| 182 | return wcwidth(this._string); |
| 183 | } |
| 184 | |
| 185 | /** |
| 186 | * Returns the screen width per character. |