columns property
int
columns
The width of the terminal in columns. Where a column is one character wide. If no terminal is attached, a value of 80 is returned. This value can change if the user resizes the console window.
Implementation
int get columns {
if (hasTerminal) {
return _console.windowWidth;
} else {
return 80;
}
}