Everytime I use these keys in the interpreter I keep getting symbols like this appearing:
[[D^[[C
I’m using Linux Mint 12 in ZSH, however I’m getting the same result in Ubuntu with bash.
Also, same thing in ssh.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The stock OCaml toplevel doesn’t have line editing built in. I use
rlwrap:Using the toplevel without something like this is quite painful, in my opinion!
Other possibilities are to run the toplevel under emacs (a popular choice, I think), or to use utop. I haven’t used utop, but it sounds cool.