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

Method assertOpen

lib/terminal.ts:1221–1228  ·  view source on GitHub ↗

* Assert terminal is open (throw if not)

()

Source from the content-addressed store, hash-verified

1219 * Assert terminal is open (throw if not)
1220 */
1221 private assertOpen(): void {
1222 if (this.isDisposed) {
1223 throw new Error('Terminal has been disposed');
1224 }
1225 if (!this.isOpen) {
1226 throw new Error('Terminal must be opened before use. Call terminal.open(parent) first.');
1227 }
1228 }
1229
1230 /**
1231 * Handle mouse move for link hover detection and scrollbar dragging

Callers 10

writeMethod · 0.95
pasteMethod · 0.95
inputMethod · 0.95
resizeMethod · 0.95
clearMethod · 0.95
resetMethod · 0.95
getModeMethod · 0.95
hasBracketedPasteMethod · 0.95
hasFocusEventsMethod · 0.95
hasMouseTrackingMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected