Skip to content

REPL doesn't interpret carriage return #1677

@thomas-morgan

Description

@thomas-morgan

I entered (println "foo\rbar") in the Cider REPL, hoping to see

bar
nil

Instead I saw

foobar
nil

This breaks progress bars among other things, as reported here: http://stackoverflow.com/questions/34649151/progress-indicator-bar-auto-changed-line-in-cider-nrepl-buffer/34651898#34651898.

For comparison, (display "foo\rbar\n") displays bar in the REPL started by run-guile.

Environment & Version information

CIDER version information

;; CIDER 0.11.0 (Bulgaria), nREPL 0.2.12
;; Clojure 1.8.0, Java 1.8.0_60

Lein/Boot version

Leiningen 2.6.1 on Java 1.8.0_60 OpenJDK 64-Bit Server VM

Emacs version

GNU Emacs 24.5.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.28) of 2015-09-25 on machine

Operating system

NixOS 15.09

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions