package ANSITerminal

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type color =
  1. | Black
  2. | Red
  3. | Green
  4. | Yellow
  5. | Blue
  6. | Magenta
  7. | Cyan
  8. | White
  9. | Default
type style =
  1. | Reset
  2. | Bold
  3. | Underlined
  4. | Inverse
  5. | Hidden
  6. | Foreground of color
  7. | Background of color
val black : style
val red : style
val green : style
val yellow : style
val blue : style
val magenta : style
val cyan : style
val white : style
val default : style
val on_black : style
val on_red : style
val on_green : style
val on_yellow : style
val on_blue : style
val on_magenta : style
val on_cyan : style
val on_white : style
val on_default : style
val set_autoreset : bool -> unit
val print_string : style list -> string -> unit
val prerr_string : style list -> string -> unit
val printf : style list -> ('a, unit, string, unit) Pervasives.format4 -> 'a
val eprintf : style list -> ('a, unit, string, unit) Pervasives.format4 -> 'a
val sprintf : style list -> ('a, unit, string) Pervasives.format -> 'a
type loc =
  1. | Eol
  2. | Above
  3. | Below
  4. | Screen
val erase : loc -> unit
val set_cursor : int -> int -> unit
val move_cursor : int -> int -> unit
val move_bol : unit -> unit
val pos_cursor : unit -> int * int
val save_cursor : unit -> unit
val restore_cursor : unit -> unit
val resize : int -> int -> unit
val size : unit -> int * int
val scroll : int -> unit
OCaml

Innovation. Community. Security.