package mirage-qubes

  1. Overview
  2. Docs
type t
val write : t -> Cstruct.t -> unit Lwt.t

Write to stdout

val writef : t -> ('a, unit, string, unit Lwt.t) format4 -> 'a

Write a formatted line to stdout.

val ewrite : t -> Cstruct.t -> unit Lwt.t

Write to stderr

val ewritef : t -> ('a, unit, string, unit Lwt.t) format4 -> 'a

Write a formatted line to stderr.

val read : t -> [ `Ok of Cstruct.t | `Eof ] Lwt.t

Read from stdin.

val read_line : t -> [ `Ok of string | `Eof ] Lwt.t

Read a complete line from stdin.

OCaml

Innovation. Community. Security.