package textutils

  1. Overview
  2. Docs
Text output utilities

Install

Dune Dependency

Authors

Maintainers

Sources

textutils-v0.13.0.tar.gz
sha256=e61fc1f7aea9faef3a38c996e6287e1c03f3ddf1dffe6b3596ba95f020e57b40
md5=90123c1e72d94adbde4727a59e8e6a63

doc/textutils.console/Console/Ansi/index.html

Module Console.Ansi

Handling of ansi codes.

val kill_line : unit -> unit
val bell : unit -> unit
val home_cursor : unit -> unit
val save_cursor : unit -> unit
val unsave_cursor : unit -> unit
type color = [
  1. | `Black
  2. | `Red
  3. | `Green
  4. | `Yellow
  5. | `Blue
  6. | `Magenta
  7. | `Cyan
  8. | `White
]
type attr = [
  1. | `Bright
  2. | `Dim
  3. | `Underscore
  4. | `Reverse
  5. | color
  6. | `Bg of color
]
val printf : attr list -> ('a, Core.Out_channel.t, unit) Core.format -> 'a
val eprintf : attr list -> ('a, Core.Out_channel.t, unit) Core.format -> 'a
val output_string : attr list -> Core.Out_channel.t -> string -> unit
val output : attr list -> Core.Out_channel.t -> Core.Bytes.t -> int -> int -> unit
val string_with_attr : attr list -> string -> string
OCaml

Innovation. Community. Security.