package async_unix

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = Core.Caml.Unix.terminal_io = {
  1. mutable c_ignbrk : bool;
    (*

    Ignore the break condition.

    *)
  2. mutable c_brkint : bool;
    (*

    Signal interrupt on break condition.

    *)
  3. mutable c_ignpar : bool;
    (*

    Ignore characters with parity errors.

    *)
  4. mutable c_parmrk : bool;
    (*

    Mark parity errors.

    *)
  5. mutable c_inpck : bool;
    (*

    Enable parity check on input.

    *)
  6. mutable c_istrip : bool;
    (*

    Strip 8th bit on input characters.

    *)
  7. mutable c_inlcr : bool;
    (*

    Map NL to CR on input.

    *)
  8. mutable c_igncr : bool;
    (*

    Ignore CR on input.

    *)
  9. mutable c_icrnl : bool;
    (*

    Map CR to NL on input.

    *)
  10. mutable c_ixon : bool;
    (*

    Recognize XON/XOFF characters on input.

    *)
  11. mutable c_ixoff : bool;
    (*

    Emit XON/XOFF chars to control input flow.

    *)
  12. mutable c_opost : bool;
    (*

    Enable output processing.

    *)
  13. mutable c_obaud : int;
    (*

    Output baud rate (0 means close connection).

    *)
  14. mutable c_ibaud : int;
    (*

    Input baud rate.

    *)
  15. mutable c_csize : int;
    (*

    Number of bits per character (5-8).

    *)
  16. mutable c_cstopb : int;
    (*

    Number of stop bits (1-2).

    *)
  17. mutable c_cread : bool;
    (*

    Reception is enabled.

    *)
  18. mutable c_parenb : bool;
    (*

    Enable parity generation and detection.

    *)
  19. mutable c_parodd : bool;
    (*

    Specify odd parity instead of even.

    *)
  20. mutable c_hupcl : bool;
    (*

    Hang up on last close.

    *)
  21. mutable c_clocal : bool;
    (*

    Ignore modem status lines.

    *)
  22. mutable c_isig : bool;
    (*

    Generate signal on INTR, QUIT, SUSP.

    *)
  23. mutable c_icanon : bool;
    (*

    Enable canonical processing (line buffering and editing)

    *)
  24. mutable c_noflsh : bool;
    (*

    Disable flush after INTR, QUIT, SUSP.

    *)
  25. mutable c_echo : bool;
    (*

    Echo input characters.

    *)
  26. mutable c_echoe : bool;
    (*

    Echo ERASE (to erase previous character).

    *)
  27. mutable c_echok : bool;
    (*

    Echo KILL (to erase the current line).

    *)
  28. mutable c_echonl : bool;
    (*

    Echo NL even if c_echo is not set.

    *)
  29. mutable c_vintr : char;
    (*

    Interrupt character (usually ctrl-C).

    *)
  30. mutable c_vquit : char;
    (*

    Quit character (usually ctrl-\ ).

    *)
  31. mutable c_verase : char;
    (*

    Erase character (usually DEL or ctrl-H).

    *)
  32. mutable c_vkill : char;
    (*

    Kill line character (usually ctrl-U).

    *)
  33. mutable c_veof : char;
    (*

    End-of-file character (usually ctrl-D).

    *)
  34. mutable c_veol : char;
    (*

    Alternate end-of-line char. (usually none).

    *)
  35. mutable c_vmin : int;
    (*

    Minimum number of characters to read before the read request is satisfied.

    *)
  36. mutable c_vtime : int;
    (*

    Maximum read wait (in 0.1s units).

    *)
  37. mutable c_vstart : char;
    (*

    Start character (usually ctrl-Q).

    *)
  38. mutable c_vstop : char;
    (*

    Stop character (usually ctrl-S).

    *)
}
type setattr_when = Core.Caml.Unix.setattr_when =
  1. | TCSANOW
  2. | TCSADRAIN
  3. | TCSAFLUSH
val tcgetattr : Fd.t -> t Async_kernel.Deferred.t
val tcsetattr : t -> Fd.t -> mode:setattr_when -> unit Async_kernel.Deferred.t
OCaml

Innovation. Community. Security.