package lambda-term

  1. Overview
  2. Docs
type point = {
  1. mutable char : CamomileLibrary.UChar.t;
  2. mutable bold : bool;
  3. mutable underline : bool;
  4. mutable reverse : bool;
  5. mutable foreground : LTerm_style.color;
  6. mutable background : LTerm_style.color;
}
type matrix = point array array
val make_matrix : LTerm_geom.size -> matrix
val set_style : point -> LTerm_style.t -> unit
type context
val context : matrix -> LTerm_geom.size -> context
exception Out_of_bounds
val size : context -> LTerm_geom.size
val clear : context -> unit
val fill : context -> ?style:LTerm_style.t -> CamomileLibrary.UChar.t -> unit
val fill_style : context -> LTerm_style.t -> unit
val point : context -> int -> int -> point
val draw_char : context -> int -> int -> ?style:LTerm_style.t -> CamomileLibrary.UChar.t -> unit
val draw_string : context -> int -> int -> ?style:LTerm_style.t -> string -> unit
val draw_styled : context -> int -> int -> ?style:LTerm_style.t -> LTerm_text.t -> unit
val draw_string_aligned : context -> int -> LTerm_geom.horz_alignment -> ?style:LTerm_style.t -> string -> unit
val draw_styled_aligned : context -> int -> LTerm_geom.horz_alignment -> ?style:LTerm_style.t -> LTerm_text.t -> unit
type connection =
  1. | Blank
  2. | Light
  3. | Heavy
type piece = {
  1. top : connection;
  2. bottom : connection;
  3. left : connection;
  4. right : connection;
}
val draw_piece : context -> int -> int -> ?style:LTerm_style.t -> piece -> unit
val draw_hline : context -> int -> int -> int -> ?style:LTerm_style.t -> connection -> unit
val draw_vline : context -> int -> int -> int -> ?style:LTerm_style.t -> connection -> unit
val draw_frame : context -> LTerm_geom.rect -> ?style:LTerm_style.t -> connection -> unit
OCaml

Innovation. Community. Security.