MCPcopy Create free account
hub / github.com/coder/ghostty-web / isLineEmpty

Function isLineEmpty

lib/terminal.test.ts:1656–1660  ·  view source on GitHub ↗

* Helper to check if a line is empty (all spaces/null codepoints)

(term: Terminal, y: number)

Source from the content-addressed store, hash-verified

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

Callers 1

terminal.test.tsFile · 0.85

Calls 1

getLineMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…