OCaml port of Linenoise

commits