MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / resize

Method resize

src/workspaces/persistent-session.ts:555–565  ·  view source on GitHub ↗
(cols: number, rows: number)

Source from the content-addressed store, hash-verified

553 }
554
555 private resize(cols: number, rows: number): void {
556 const c = clamp(Math.floor(cols), 1, MAX_DIM);
557 const r = clamp(Math.floor(rows), 1, MAX_DIM);
558 this.currentCols = c;
559 this.currentRows = r;
560 try {
561 this.term.resize(c, r);
562 } catch {
563 // PTY may be dying; ignore.
564 }
565 }
566
567 private sendControl(msg: ServerControlMessage): void {
568 const ws = this.ws;

Callers 3

attachMethod · 0.95
onWsMessageMethod · 0.95
sendMethod · 0.80

Calls 1

clampFunction · 0.70

Tested by

no test coverage detected