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

Method clear

lib/terminal.ts:674–678  ·  view source on GitHub ↗

* Clear terminal screen

()

Source from the content-addressed store, hash-verified

672 * Clear terminal screen
673 */
674 clear(): void {
675 this.assertOpen();
676 // Send ANSI clear screen and cursor home sequences
677 this.wasmTerm!.write('\x1b[2J\x1b[H');
678 }
679
680 /**
681 * Reset terminal state

Callers 5

terminal.test.tsFile · 0.45
resetMethod · 0.45
invalidateCacheMethod · 0.45
disposeMethod · 0.45

Calls 2

assertOpenMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected