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

Method selectAll

lib/selection-manager.ts:244–251  ·  view source on GitHub ↗

* Select all text in the terminal

()

Source from the content-addressed store, hash-verified

242 * Select all text in the terminal
243 */
244 selectAll(): void {
245 const dims = this.wasmTerm.getDimensions();
246 const viewportY = this.getViewportY();
247 this.selectionStart = { col: 0, absoluteRow: viewportY };
248 this.selectionEnd = { col: dims.cols - 1, absoluteRow: viewportY + dims.rows - 1 };
249 this.requestRender();
250 this.selectionChangedEmitter.fire();
251 }
252
253 /**
254 * Select text at specific column and row with length

Callers

nothing calls this directly

Calls 4

getViewportYMethod · 0.95
requestRenderMethod · 0.95
getDimensionsMethod · 0.65
fireMethod · 0.45

Tested by

no test coverage detected