package mirage-qubes

  1. Overview
  2. Docs
type t
val write : t -> Cstruct.t -> [ `Ok of unit | `Eof ] Lwt.t

Write to stdin

val writef : t -> ('a, unit, string, [ `Ok of unit | `Eof ] Lwt.t) format4 -> 'a

Write to stdin

val read : t -> [ `Stdout of Cstruct.t | `Stderr of Cstruct.t | `Eof | `Exit_code of Cstruct.uint32 ] Lwt.t

Read from stdout and stderr