Module B0_std.Tty
ANSI terminal interaction.
Terminals
type t= [ `Dumb | `Term of string ] optionThe type for terminals. Either no terminal, a dumb one or a named terminal from the
TERMenvironment variable.
val of_fd : Unix.file_descr -> tof_fd fddetermines the terminal for file descriptorfdby usingUnix.isattyfdand consulting theTERMenvironment variable.
Capabilities
ANSI escapes and styling
type color=[|`Default|`Black|`Red|`Green|`Yellow|`Blue|`Magenta|`Cyan|`White]The type for ANSI colors.
type style=[|`Bold|`Faint|`Italic|`Underline|`Blink of [ `Slow | `Rapid ]|`Reverse|`Fg of color|`Bg of color]The type for ANSI styles.