Module Terminal.SizeSource

Functions for getting the size of the terminal to which stdout is attached (provided stdout is a TTY).

Sourcetype dimensions = {
  1. rows : int;
  2. columns : int;
}
Sourceval get_dimensions : unit -> dimensions option
Sourceval get_columns : unit -> int option
Sourceval get_rows : unit -> int option
Sourceval set_changed_callback : (unit -> unit) -> unit