package inquire

  1. Overview
  2. Docs

Modude to create styled string in the terminal.

Module to style a string in the terminal.

Ultimately, this could use Pastel (https://github.com/facebookexperimental/reason-native/blob/master/src/pastel/) but unfortunately reason-native packages are not released on Opam yet.

type color =
  1. | Default
  2. | Black
  3. | Red
  4. | Green
  5. | Yellow
  6. | Blue
  7. | Magenta
  8. | Cyan
  9. | White
  10. | BrightBlack
  11. | BrightRed
  12. | BrightGreen
  13. | BrightYellow
  14. | BrightBlue
  15. | BrightMagenta
  16. | BrightCyan
  17. | BrightWhite
type t = {
  1. bold : Base.bool;
  2. dim : Base.bool;
  3. italic : Base.bool;
  4. underline : Base.bool;
  5. inverse : Base.bool;
  6. hidden : Base.bool;
  7. strikethrough : Base.bool;
  8. color : color;
  9. background : color;
}
val default : t
module Ascii : sig ... end
module Text_markup : sig ... end
val bold : style:t -> t
val dim : style:t -> t
val italic : style:t -> t
val underline : style:t -> t
val inverse : style:t -> t
val hidden : style:t -> t
val strikethrough : style:t -> t
val color : color -> style:t -> t
val background : color -> style:t -> t
val make : (style:t -> t) Base.List.t -> t
OCaml

Innovation. Community. Security.