mfikes / ambly

ClojureScript REPL into embedded JavaScriptCore
http://ambly.fikesfarm.com
Eclipse Public License 1.0
541 stars 21 forks source link

`:cljs/quit` message appears before REPL is live #35

Closed mfikes closed 9 years ago

mfikes commented 9 years ago

A typical sequence looks like

orion:Clojure mfikes$ script/jscrepljs 
To quit, type: :cljs/quit

[1] Mike's iPod touch
[2] Mike’s Light Grey iPad
[3] iPhone Simulator (Kidss-iMac-2-local)

[R] Refresh

Choice: 3

Connecting to iPhone Simulator (Kidss-iMac-2-local) ...

ClojureScript:cljs.user> (+ 3 4)
7
ClojureScript:cljs.user> 

It would probably be better if the To quit, type: :cljs/quit message appeared after the connection was made, right before the prompt. (Perhaps this is a simple matter of revising the ClojureScript cljs.repl to print the message upon -setup completing instead of before calling it.)

mfikes commented 9 years ago

Probably not worth changing. (Would have to propose a change in base ClojureScript REPL and that change could affect other derived REPLs.)

mfikes commented 9 years ago

It turns out, with the latest ClojureScript releases the message appears right before the first prompt, like this:

Mike-Fikess-MacBook-Pro:Clojure mfikes$ script/jscrepljs 

[1] Ambly Demo on Mike's iPod touch

[R] Refresh

Choice: 1

Connecting to Ambly Demo on Mike's iPod touch ...

To quit, type: :cljs/quit
ClojureScript:cljs.user>