I’m using rlwrap, but I don’t have tab-completion, and characters with accents get mangled. This is on OSX 10.6 in Terminal.app.
I’m using rlwrap, but I don’t have tab-completion, and characters with accents get mangled.
Share
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.
Use the
-fflag to rlwrap to enable tab completion. It’s going to be static completion though, based on a static list of symbols in some file you specify. If you want dynamic completion (based on any symbol that’s currently defined in your running REPL), you should try Emacs + SLIME or equivalent.In any case, here’s one way to generate a list of symbols to tab-complete. You will have to regenerate this file from time to time because new symbols are added to Clojure’s core in every version. (This code works with bleeding edge clojure-contrib;
clojure.contrib.iowas calledduck-streamsin earlier versions.)Then:
If your terminal is mangling characters with accents, you likely have an encoding or locale problem. It works fine for me. I don’t use OS X and don’t know what terminal you use, so I can’t help. In Konsole in Linux, inside rlwrap: