Module Line_discipline

type mode =
  1. | Cooked
  2. | Raw
type event =
  1. | Line of string
  2. | Key of string
  3. | Interrupt
  4. | End_of_file
type t
val create : unit -> t
val mode : t -> mode
val set_mode : t -> mode -> t
val set_echo : t -> bool -> t
val pending : t -> string
val input : t -> string -> t * string * event list
val output : string -> string
val split_keys : string -> string list