MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / queryCellSize

Method queryCellSize

packages/pi-tui/src/tui.ts:687–695  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

685 }
686
687 private queryCellSize(): void {
688 // Only query if terminal supports images (cell size is only used for image rendering)
689 if (!getCapabilities().images) {
690 return;
691 }
692 // Query terminal for cell size in pixels: CSI 16 t
693 // Response format: CSI 6 ; height ; width t
694 this.terminal.write("\x1b[16t");
695 }
696
697 stop(): void {
698 this.stopped = true;

Callers 1

startMethod · 0.95

Calls 2

getCapabilitiesFunction · 0.90
writeMethod · 0.65

Tested by

no test coverage detected