Up

Module Console

Signature

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 None if stdout is not connected to a tty.

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

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