pub fn width() -> usize
Returns the terminal width in columns, or 80 as fallback.
80
Uses TIOCGWINSZ ioctl on Unix and GetConsoleScreenBufferInfo on Windows. Returns 80 when output is piped or size cannot be determined.
TIOCGWINSZ
GetConsoleScreenBufferInfo