When you use OCaml on Linux for example, you cannot by default using the arrow from your keyboard, neither the completion.
If you try to use them you will have something like that:
# ^[[A^[[D^[[C^[[B^[[D^[[A^[[C^[[D^[[B^[[C
But there is readline wrapper named rlwrap that will help us in this task!
Just write it before starting your OCaml interpreter, like this:
$ rlwrap ocaml
Thus your arrows will work and completion too.
© Badprog - I want to change the world. And I will.
Add new comment