Module Fmt_tty

module Fmt_tty: sig .. end
Fmt TTY setup.

Fmt_tty provides simple automatic setup on channel formatters for:

v0.8.0 - homepage



TTY setup

.
val setup : ?style_renderer:Fmt.style_renderer ->
?utf_8:bool -> Pervasives.out_channel -> Format.formatter
setup ?style_renderer ?utf_8 outc is a formatter for outc with Fmt.set_style_renderer and Fmt.set_utf_8 correctly setup. If style_renderer or utf_8 are specified they override the automatic setup.

If outc is stdout, Fmt.stdout is returned. If outc is stderr, Fmt.stderr is returned.

val setup_std_outputs : ?style_renderer:Fmt.style_renderer -> ?utf_8:bool -> unit -> unit
setup_std_outputs ?style_renderer ?utf_8 () applies Fmt_tty.setup on stdout and stderr.