pub fn columns() -> Option<usize>Expand description
The terminal’s width in columns, or None when output is not a terminal.
Standard output is asked first and standard error second, so that a page a CLI prints to stderr — the short page that accompanies a usage error — is still laid out for the terminal the user is looking at when stdout has been redirected to a file.