@coat/cli
Version:
TODO: See #3
20 lines (19 loc) • 428 B
TypeScript
export declare enum TerminalSize {
Tiny = 0,
Small = 1,
Large = 2
}
/**
* Retrieves the usable terminal size that is used
* for formatted output like boxes or larger text blocks.
*
* @param stdout The output stream, typically process.stdout
*/
export declare function getUsableTerminalSize(stdout: {
isTTY: boolean;
rows: number;
columns: number;
}): {
size: TerminalSize;
width: number;
};