MCPcopy Create free account
hub / github.com/codeaashu/claude-code / clear

Method clear

src/server/web/public/terminal.js:1581–1583  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1579 this.clear();
1580 }
1581 clear() {
1582 this.hasSelection = false, this.columnSelectMode = false, this.viewportStartRow = 0, this.viewportEndRow = 0, this.viewportCappedStartRow = 0, this.viewportCappedEndRow = 0, this.startCol = 0, this.endCol = 0, this.selectionStart = void 0, this.selectionEnd = void 0;
1583 }
1584 update(e3, t3, i3, s2 = false) {
1585 if (this.selectionStart = t3, this.selectionEnd = i3, !t3 || !i3 || t3[0] === i3[0] && t3[1] === i3[1]) return void this.clear();
1586 const r = e3.buffers.active.ydisp, n = t3[1] - r, o = i3[1] - r, a = Math.max(n, 0), h = Math.min(o, e3.rows - 1);

Callers 2

constructorMethod · 0.95
updateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected