Module Interact.Tty

Functor that instantiates a TTY module which uses /dev/tty for both input and output.

Using a functor lets us delay the opening of the TTY until needed.

Typical use for simple interactive programs is to just instantiate the module at the global level of your program:

module Tty = Tty (Null) 

Parameters

module U : NULL

Signature

val t : Unix.file_descr
val ttyin : Stdlib.in_channel
val ttyout : Stdlib.out_channel