package textutils

  1. Overview
  2. Docs
Text output utilities

Install

Dune Dependency

Authors

Maintainers

Sources

textutils-v0.14.0.tar.gz
sha256=14a2f8393159fcc43bfac82d0100364dc874fee94447aced80ec8ae99e2949eb
md5=32980ca8c5c6128273bb6f662efc7c60

doc/textutils.console/Console/index.html

Module Console

module type Io = sig ... end
module type S = sig ... end
module Make (Io : Io) : S with type 'a io := 'a Io.t and type 'a io_fmt := 'a Io.fmt and type out_channel := Io.out_channel
include S with type 'a io := 'a and type 'a io_fmt := ('a, Core.Out_channel.t, unit) Core.format and type out_channel := Core.Out_channel.t
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.