windowWidth property
int
get
windowWidth
Returns the width of the current console window in characters.
Implementation
int get windowWidth {
if (hasTerminal) {
return stdout.terminalColumns;
} else {
// Treat a window that has no terminal as if it is 80x25. This should be
// more compatible with CI/CD environments.
return 80;
}
}