package inquire

  1. Overview
  2. Docs
An OCaml library to create beautiful interactive CLIs

Install

Dune Dependency

Authors

Maintainers

Sources

inquire-v0.1.0.tbz
sha256=d738b9b264934004e6b3926a7ba9e7c637429e86893316e93a12f3812a1ba782
sha512=d081e9b8d886d1b321e6d2fe69a83f8c432c6c5150496e2389e9c3ecc2cebfb39248980b3286c622574250e36f0553189f16d908cb52043acc7f841201e8b45b

doc/inquire.lib/Inquire/Style/index.html

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.