* Helper to check if a line is empty (all spaces/null codepoints)
(term: Terminal, y: number)
| 1654 | * Helper to check if a line is empty (all spaces/null codepoints) |
| 1655 | */ |
| 1656 | function isLineEmpty(term: Terminal, y: number): boolean { |
| 1657 | const line = term.wasmTerm?.getLine(y); |
| 1658 | if (!line) return true; |
| 1659 | return line.every((c) => c.codepoint === 0 || c.codepoint === 32); |
| 1660 | } |
| 1661 | |
| 1662 | /** |
| 1663 | * Helper to get line content directly from viewport |
no test coverage detected
searching dependent graphs…