Module Console

module Make : functor (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 := 'a and type 'a S.io_fmt := ('aCore.Out_channel.t, unit) Core.format and type S.out_channel := Core.Out_channel.t
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)