When interactively running the OCaml toplevel on Emacs (via the Tuareg mode), evaluation of expression which do input from the standard input channel does not finish.
For instance, when I enter the following expression in the *ocaml-toplevel*
buffer and hit enter
let x = read_int ();;
and type some integer and hit ENTER
to finish, evaluation is not finished as it was expected.
The following screenshot demonstrates the situation.
What is the proper way of doing input from the standard input channel in the OCaml toplevel buffer in Emacs?