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/index.html

Module Console

Printing on console tty's

module Ansi : sig ... end

Handling of ansi codes.

val is_color_tty : unit -> bool
val width : unit -> [ `Cols of int | `Not_a_tty | `Not_available ]

The width in characters of the current output. Returns `Not_a_tty if stdout is not connected to a tty.

val print_list : Core.Out_channel.t -> (string * Ansi.attr list) list -> unit

print a list in a columnize way (like the output of ls)

OCaml

Innovation. Community. Security.