MCPcopy Create free account
hub / github.com/anus-dev/ANUS / updateSize

Function updateSize

packages/cli/src/ui/hooks/useTerminalSize.ts:19–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18 useEffect(() => {
19 function updateSize() {
20 setSize({
21 columns: (process.stdout.columns || 60) - TERMINAL_PADDING_X,
22 rows: process.stdout.rows || 20,
23 });
24 }
25
26 process.stdout.on('resize', updateSize);
27 return () => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected