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

Function getLineContent

lib/terminal.test.ts:1644–1651  ·  view source on GitHub ↗

* Helper to get line content as a string

(term: Terminal, y: number)

Source from the content-addressed store, hash-verified

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)

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…