* Helper to get line content as a string
(term: Terminal, y: number)
| 1642 | * Helper to get line content as a string |
| 1643 | */ |
| 1644 | function getLineContent(term: Terminal, y: number): string { |
| 1645 | const line = term.wasmTerm?.getLine(y); |
| 1646 | if (!line) return ''; |
| 1647 | return line |
| 1648 | .map((c) => String.fromCodePoint(c.codepoint || 32)) |
| 1649 | .join('') |
| 1650 | .trimEnd(); |
| 1651 | } |
| 1652 | |
| 1653 | /** |
| 1654 | * Helper to check if a line is empty (all spaces/null codepoints) |
no test coverage detected
searching dependent graphs…