Module Vt

type color =
  1. | Default
  2. | Black
  3. | Red
  4. | Green
  5. | Yellow
  6. | Blue
  7. | Magenta
  8. | Cyan
  9. | White
type attrs = {
  1. fg : color;
  2. bg : color;
  3. bold : bool;
  4. reverse : bool;
}
type cell = {
  1. glyph : string;
  2. attrs : attrs;
}
val plain : attrs
val blank : cell
type t
val create : rows:int -> cols:int -> t
val feed : t -> string -> t
val rows : t -> int
val cols : t -> int
val cell : t -> int -> int -> cell
val cursor : t -> int * int
val cursor_visible : t -> bool
val bells : t -> int
val text : t -> string list
val key : ?alt:bool -> ctrl:bool -> string -> string option