package textutils

  1. Overview
  2. Docs
Text output utilities

Install

Dune Dependency

Authors

Maintainers

Sources

textutils-v0.15.0.tar.gz
sha256=c0368fb6ad18727cd69fbfb20dd734fb7f7189707107d1f88d8de15837dc22df

doc/textutils.console/Console/module-type-S/index.html

Module type Console.SSource

type 'a io
type 'a io_fmt
type out_channel
module Ansi : sig ... end

Handling of ansi codes.

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

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

val print_list : out_channel -> (string * Ansi.attr list) list -> unit io

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

OCaml

Innovation. Community. Security.