Convenience hook returning just the terminal dimensions. Re-renders on SIGWINCH (stdout.emit('resize')). Equivalent to picking { columns, rows } off useStdout(); offered for parity with the useWindowSize name peer libraries use.
stdout.emit('resize')
{ columns, rows }
useStdout()
useWindowSize
Convenience hook returning just the terminal dimensions. Re-renders on SIGWINCH (
stdout.emit('resize')). Equivalent to picking{ columns, rows }offuseStdout(); offered for parity with theuseWindowSizename peer libraries use.