Module Fmt_tty
Fmt TTY setup.
Fmt_tty provides simple automatic setup on channel formatters for:
Fmt.set_style_renderer.`Ansi_ttyis used if the channel is a tty and the environment variableTERMis defined and its value is not"dumb".`Noneis used otherwise.Fmt.set_utf_8.trueis used if one of the following environment variables has"UTF-8"as a case insensitive substring:LANG,LC_ALL,LC_CTYPE.
v0.8.5 - homepage
TTY setup
val setup : ?style_renderer:Fmt.style_renderer -> ?utf_8:bool -> Stdlib.out_channel -> Stdlib.Format.formattersetup ?style_renderer ?utf_8 outcis a formatter foroutcwithFmt.set_style_rendererandFmt.set_utf_8correctly setup. Ifstyle_rendererorutf_8are specified they override the automatic setup.If
outcisstdout,Fmt.stdoutis returned. Ifoutcisstderr,Fmt.stderris returned.
val setup_std_outputs : ?style_renderer:Fmt.style_renderer -> ?utf_8:bool -> unit -> unitsetup_std_outputs ?style_renderer ?utf_8 ()appliessetuponstdoutandstderr.