MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getTerminalSize

Function getTerminalSize

src/utils/asciicast.ts:118–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116let recorder: AsciicastRecorder | null = null
117
118function getTerminalSize(): { cols: number; rows: number } {
119 // Direct access to stdout dimensions — not in a React component
120 // eslint-disable-next-line custom-rules/prefer-use-terminal-size
121 const cols = process.stdout.columns || 80
122 // eslint-disable-next-line custom-rules/prefer-use-terminal-size
123 const rows = process.stdout.rows || 24
124 return { cols, rows }
125}
126
127/**
128 * Flush pending recording data to disk.

Callers 2

installAsciicastRecorderFunction · 0.85
onResizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected