package inquire

  1. Overview
  2. Docs

Module Inquire.StyleSource

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.

Sourcetype 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
Sourcetype 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;
}
Sourceval default : t
Sourcemodule Ascii : sig ... end
Sourcemodule Text_markup : sig ... end
Sourceval bold : style:t -> t
Sourceval dim : style:t -> t
Sourceval italic : style:t -> t
Sourceval underline : style:t -> t
Sourceval inverse : style:t -> t
Sourceval hidden : style:t -> t
Sourceval strikethrough : style:t -> t
Sourceval color : color -> style:t -> t
Sourceval background : color -> style:t -> t
Sourceval make : (style:t -> t) Base.List.t -> t
OCaml

Innovation. Community. Security.