ClojureScript

Allow exiting CLJS repl with EOF/ctrl-D as well as :cljs/quit

Details

  • Type: Enhancement Enhancement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code

Description

The CLJS repl is not a perfectly well-behaved command-line tool, in that it does not respect the convention of quitting by sending an EOF character with ctrl-D. This must be causing a small amount of irritation to everyone who uses the repl and is used to the customary amenities of any command-line tool; we could ease a little bit of frustration by supporting EOF.

I've attached a patch to improve this behavior, without affecting anything else.

Activity

Hide
Frank Siebenlist added a comment -

I like the idea, but I normally start the cljs-repl from a clj-repl with

user=> (run-repl-listen 9000 ".lein-cljsbuild-repl")

and then the proposed solution seems to exit both the cljs-repl and the clj-repl as well with a single ctrl-D, which increases the irritation with a small amount...

Sorry, I'm not well versed enough in the IO intricacies to provide an alternative.

Show
Frank Siebenlist added a comment - I like the idea, but I normally start the cljs-repl from a clj-repl with user=> (run-repl-listen 9000 ".lein-cljsbuild-repl") and then the proposed solution seems to exit both the cljs-repl and the clj-repl as well with a single ctrl-D, which increases the irritation with a small amount... Sorry, I'm not well versed enough in the IO intricacies to provide an alternative.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: