package spin

  1. Overview
  2. Docs
Project scaffolding tool and set of templates for Reason and OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

spin-0.5.1.tbz
sha256=63f80ce6baa89438f3b5b5f0a07fe8ec3648a0af2116f64d1ced0a55e1db1452
sha512=15df032c37f5bebab26e36b732c8c4fd5e63ade258a4c045e601f61fe142c01757e83a3903e76114e606ef7aea0bb46f998f98bf94dde40c07168cf5e009be22

doc/spin.lib/Spin/Pastel/index.html

Module Spin.Pastel

type color =
  1. | Default
  2. | Black
  3. | Red
  4. | Green
  5. | Yellow
  6. | Blue
  7. | Magenta
  8. | Cyan
  9. | White
  10. | BlackBright
  11. | RedBright
  12. | GreenBright
  13. | YellowBright
  14. | BlueBright
  15. | MagentaBright
  16. | CyanBright
  17. | WhiteBright

Module to style a string in the terminal.

This tries to mimic Pastel's API. As Pastel is not on Opam, we don't want to depend on if for now. Once it is release, however, we would like to replace this module by Pastel.

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 Style : sig ... end
val make : ?bold:Base.bool -> ?dim:Base.bool -> ?italic:Base.bool -> ?underline:Base.bool -> ?inverse:Base.bool -> ?hidden:Base.bool -> ?strikethrough:Base.bool -> ?color:color -> ?background:color -> Base.String.t Base.List.t -> Base.String.t
OCaml

Innovation. Community. Security.