An improved version of demonstrate.sh written in OCaml and that uses pseudo-terminals