Module Terminal.Size

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

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