/// Dimensions of a terminal grid in cells.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]pubstructTerminalSize{/// Column count.
pubcols:u16,
/// Row count.
pubrows:u16,
}implTerminalSize{/// Creates a new terminal size with the given column and row counts.
#[must_use]pubfnnew(cols:u16, rows:u16)->Self{Self{ cols, rows }}}