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

Function onResize

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

Source from the content-addressed store, hash-verified

211
212 // Handle terminal resize events
213 function onResize(): void {
214 const elapsed = (performance.now() - startTime) / 1000
215 const { cols: newCols, rows: newRows } = getTerminalSize()
216 writer.write(jsonStringify([elapsed, 'r', `${newCols}x${newRows}`]) + '\n')
217 }
218 process.stdout.on('resize', onResize)
219
220 recorder = {

Callers

nothing calls this directly

Calls 3

getTerminalSizeFunction · 0.85
jsonStringifyFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected