package textutils

  1. Overview
  2. Docs
Text output utilities

Install

Dune Dependency

Authors

Maintainers

Sources

v0.17.0.tar.gz
sha256=b2681af1f4029245a5c187c4f0834ac470ada6ffc69db7c7e219b3244f88b3d5

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

Module Console.MakeSource

Parameters

module Io : Io

Signature

Sourcemodule Ansi : sig ... end

Handling of ansi codes.

Sourceval is_color_tty : unit -> bool Io.t
Sourceval width : unit -> [ `Cols of int | `Not_a_tty | `Not_available ] Io.t

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

Sourceval print_list : Io.out_channel -> (string * Ansi.attr list) list -> unit Io.t

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

OCaml

Innovation. Community. Security.