package printbox

  1. Overview
  2. Docs
On This Page
  1. Style
Legend:
Library
Module
Module type
Parameter
Class
Class type

Style

  • since 0.3
type color =
  1. | Black
  2. | Red
  3. | Yellow
  4. | Green
  5. | Blue
  6. | Magenta
  7. | Cyan
  8. | White
type t = {
  1. bold : bool;
  2. bg_color : color option;
    (*

    backgroud color

    *)
  3. fg_color : color option;
    (*

    foreground color

    *)
  4. preformatted : bool;
    (*

    where supported, the text rendering should be monospaced and respect whitespace

    *)
}

Basic styling (color, bold).

  • since 0.3
val default : t
val set_bg_color : color -> t -> t
val set_fg_color : color -> t -> t
val set_bold : bool -> t -> t
val set_preformatted : bool -> t -> t
val bg_color : color -> t
val fg_color : color -> t
val bold : t
val preformatted : t
OCaml

Innovation. Community. Security.