module Terminal_io:sig..end
typet =Unix.terminal_io= {
|
mutable c_ignbrk : |
(* |
Ignore the break condition.
| *) |
|
mutable c_brkint : |
(* |
Signal interrupt on break condition.
| *) |
|
mutable c_ignpar : |
(* |
Ignore characters with parity errors.
| *) |
|
mutable c_parmrk : |
(* |
Mark parity errors.
| *) |
|
mutable c_inpck : |
(* |
Enable parity check on input.
| *) |
|
mutable c_istrip : |
(* |
Strip 8th bit on input characters.
| *) |
|
mutable c_inlcr : |
(* |
Map NL to CR on input.
| *) |
|
mutable c_igncr : |
(* |
Ignore CR on input.
| *) |
|
mutable c_icrnl : |
(* |
Map CR to NL on input.
| *) |
|
mutable c_ixon : |
(* |
Recognize XON/XOFF characters on input.
| *) |
|
mutable c_ixoff : |
(* |
Emit XON/XOFF chars to control input flow.
| *) |
|
mutable c_opost : |
(* |
Enable output processing.
| *) |
|
mutable c_obaud : |
(* |
Output baud rate (0 means close connection).
| *) |
|
mutable c_ibaud : |
(* |
Input baud rate.
| *) |
|
mutable c_csize : |
(* |
Number of bits per character (5-8).
| *) |
|
mutable c_cstopb : |
(* |
Number of stop bits (1-2).
| *) |
|
mutable c_cread : |
(* |
Reception is enabled.
| *) |
|
mutable c_parenb : |
(* |
Enable parity generation and detection.
| *) |
|
mutable c_parodd : |
(* |
Specify odd parity instead of even.
| *) |
|
mutable c_hupcl : |
(* |
Hang up on last close.
| *) |
|
mutable c_clocal : |
(* |
Ignore modem status lines.
| *) |
|
mutable c_isig : |
(* |
Generate signal on INTR, QUIT, SUSP.
| *) |
|
mutable c_icanon : |
(* |
Enable canonical processing
(line buffering and editing)
| *) |
|
mutable c_noflsh : |
(* |
Disable flush after INTR, QUIT, SUSP.
| *) |
|
mutable c_echo : |
(* |
Echo input characters.
| *) |
|
mutable c_echoe : |
(* |
Echo ERASE (to erase previous character).
| *) |
|
mutable c_echok : |
(* |
Echo KILL (to erase the current line).
| *) |
|
mutable c_echonl : |
(* |
Echo NL even if c_echo is not set.
| *) |
|
mutable c_vintr : |
(* |
Interrupt character (usually ctrl-C).
| *) |
|
mutable c_vquit : |
(* |
Quit character (usually ctrl-\).
| *) |
|
mutable c_verase : |
(* |
Erase character (usually DEL or ctrl-H).
| *) |
|
mutable c_vkill : |
(* |
Kill line character (usually ctrl-U).
| *) |
|
mutable c_veof : |
(* |
End-of-file character (usually ctrl-D).
| *) |
|
mutable c_veol : |
(* |
Alternate end-of-line char. (usually none).
| *) |
|
mutable c_vmin : |
(* |
Minimum number of characters to read
before the read request is satisfied.
| *) |
|
mutable c_vtime : |
(* |
Maximum read wait (in 0.1s units).
| *) |
|
mutable c_vstart : |
(* |
Start character (usually ctrl-Q).
| *) |
|
mutable c_vstop : |
(* |
Stop character (usually ctrl-S).
| *) |
typesetattr_when =Unix.setattr_when=
| |
TCSANOW |
| |
TCSADRAIN |
| |
TCSAFLUSH |
val tcgetattr : Core_unix.File_descr.t -> tval tcsetattr : t ->
Core_unix.File_descr.t -> mode:setattr_when -> unitTCSANOW),
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 : Core_unix.File_descr.t -> duration:int -> unitval tcdrain : Core_unix.File_descr.t -> unittypeflush_queue =Unix.flush_queue=
| |
TCIFLUSH |
| |
TCOFLUSH |
| |
TCIOFLUSH |
val tcflush : Core_unix.File_descr.t -> mode:flush_queue -> unitTCIFLUSH flushes data received but not read,
TCOFLUSH flushes data written but not transmitted, and
TCIOFLUSH flushes both.typeflow_action =Unix.flow_action=
| |
TCOOFF |
| |
TCOON |
| |
TCIOFF |
| |
TCION |
val tcflow : Core_unix.File_descr.t -> mode:flow_action -> unitTCOOFF suspends output, TCOON restarts output,
TCIOFF transmits a STOP character to suspend input,
and TCION transmits a START character to restart input.val setsid : unit -> intval sexp_of_t : t -> Sexplib.Sexp.t
val sexp_of_setattr_when : setattr_when -> Sexplib.Sexp.tTCSANOW),
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 flush_queue_of_sexp : Sexplib.Sexp.t -> flush_queue
val sexp_of_flush_queue : flush_queue -> Sexplib.Sexp.tTCIFLUSH flushes data received but not read,
TCOFLUSH flushes data written but not transmitted, and
TCIOFLUSH flushes both.val flow_action_of_sexp : Sexplib.Sexp.t -> flow_action
val sexp_of_flow_action : flow_action -> Sexplib.Sexp.tTCOOFF suspends output, TCOON restarts output,
TCIOFF transmits a STOP character to suspend input,
and TCION transmits a START character to restart input.