Get the number of columns required to display a string
(line)
| 204 | |
| 205 | |
| 206 | def _visual_width(line): |
| 207 | """Get the number of columns required to display a string""" |
| 208 | |
| 209 | return len(re.sub(AnsiToWin32.ANSI_CSI_RE, "", line)) |
| 210 | |
| 211 | |
| 212 | def _visual_center(line, width): |
no outgoing calls
no test coverage detected