package terminal

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

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
OCaml

Innovation. Community. Security.