Module B0_std.Tty

ANSI terminal interaction.

TODO get rid of this.

Terminals

type t = [ `Dumb | `Term of string ] option

The type for terminals. Either no terminal, a dumb one or a named terminal from the TERM environment variable.

val of_fd : Unix.file_descr -> t

of_fd fd determines the terminal for file descriptor fd by using Unix.isatty fd and consulting the TERM environment variable.

val cap : t -> [ `None | `Ansi ]

cap tty determines tty's capabilities.