Terminal column width of a parsed line.
(line: ParsedLine)
| 154 | |
| 155 | /** Terminal column width of a parsed line. */ |
| 156 | function lineWidthCells(line: ParsedLine): number { |
| 157 | let w = 0 |
| 158 | for (const span of line) w += stringWidth(span.text) |
| 159 | return w |
| 160 | } |
| 161 | |
| 162 | function fillBackground(px: Uint8Array, bg: AnsiColor): void { |
| 163 | for (let i = 0; i < px.length; i += 4) { |
nothing calls this directly
no outgoing calls
no test coverage detected