Terminal.Size
Functions for getting the size of the terminal to which stdout is attached (provided stdout is a TTY).
stdout
type dimensions = {
rows : int;
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