OCaml - Utilities - Using the rlwrap command

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. laugh

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Refresh Type the characters you see in this picture. Type the characters you see in the picture; if you can't read them, submit the form and a new image will be generated. Not case sensitive.  Switch to audio verification.