///|
/// Terminal window size in rows and columns.
#derive(Eq, Debug)
pub struct WindowSize {
  rows : Int32
  cols : Int32
}

///|
/// The visible terminal window size.
pub fn Tty::window_size(self : Self) -> WindowSize raise @os_error.OSError {
  let (rows, cols) = backend_size(self.backend)
  { rows, cols, }
}