type t = Unix.terminal_io = {}include sig ... endval sexp_of_t : t ‑> Sexplib.Sexp.tinclude sig ... endval sexp_of_setattr_when : setattr_when ‑> Sexplib.Sexp.tval tcgetattr : File_descr.t ‑> tReturn the status of the terminal referred to by the given file descriptor.
val tcsetattr : t ‑> File_descr.t ‑> mode:setattr_when ‑> unitSet the status of the terminal referred to by the given
file descriptor. The second argument indicates when the
status change takes place: immediately (TCSANOW),
when all pending output has been transmitted (TCSADRAIN),
or after flushing all input that has been received but not
read (TCSAFLUSH). TCSADRAIN is recommended when changing
the output parameters; TCSAFLUSH, when changing the input
parameters.
val tcsendbreak : File_descr.t ‑> duration:int ‑> unitSend a break condition on the given file descriptor. The second argument is the duration of the break, in 0.1s units; 0 means standard duration (0.25s).
val tcdrain : File_descr.t ‑> unitWaits until all output written on the given file descriptor has been transmitted.
include sig ... endval flush_queue_of_sexp : Sexplib.Sexp.t ‑> flush_queueval sexp_of_flush_queue : flush_queue ‑> Sexplib.Sexp.tval tcflush : File_descr.t ‑> mode:flush_queue ‑> unitDiscard data written on the given file descriptor but not yet
transmitted, or data received but not yet read, depending on the
second argument: TCIFLUSH flushes data received but not read,
TCOFLUSH flushes data written but not transmitted, and
TCIOFLUSH flushes both.
include sig ... endval flow_action_of_sexp : Sexplib.Sexp.t ‑> flow_actionval sexp_of_flow_action : flow_action ‑> Sexplib.Sexp.tval tcflow : File_descr.t ‑> mode:flow_action ‑> unitSuspend or restart reception or transmission of data on
the given file descriptor, depending on the second argument:
TCOOFF suspends output, TCOON restarts output,
TCIOFF transmits a STOP character to suspend input,
and TCION transmits a START character to restart input.