UNPKG

ink

Version:
10 lines (8 loc) 352 B
/** Get the effective terminal dimensions from the given stdout stream. Falls back to `terminal-size` for columns in piped processes where `stdout.columns` is 0, and uses standard defaults (80×24) when dimensions cannot be determined. */ export declare const getWindowSize: (stdout: NodeJS.WriteStream) => { columns: number; rows: number; };