module Terminal_io:sig
..end
typet =
Core.Std.Caml.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 =
Core.Std.Caml.Unix.setattr_when
=
| |
TCSANOW |
| |
TCSADRAIN |
| |
TCSAFLUSH |
val tcgetattr : Fd.t -> t Import.Deferred.t
val tcsetattr : t ->
Fd.t -> mode:setattr_when -> unit Import.Deferred.t