-7

I start the repl with cjl and get the prompt

Clojure 1.11.1
user=>

At the user prompt I enter (+ 1 2 3) and hit return. The output is this:

user=> (+ 1 2 (+ 1 2 3)
6

I think the operation I entered is being overwritten.

I'm in i3 window manager but, when I quit back to the OS console, it does the same thing. How can I fix that.

If it matters, I'm on FreeBSD.

0

1 Answer 1

6

This is most likely due to a known issue with rlwrap (which clj uses to wrap the clojure script for interactive use).

If you create .inputrc file in your home directory with the following contents, it should solve the problem:

$if clojure
    set enable-bracketed-paste off
$endif
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.