That's the just standard Browser REPL, trying to use rlwrap or readline w/ that approach probably isn't going to work. You'll want to look at how mies does it and copy the approach - http://swannodette.github.io/2015/01/02/the-essence-of-clojurescript-redux/.
David On Sat, Jan 3, 2015 at 10:59 PM, gvim <gvi...@gmail.com> wrote: > I'm using MacPorts but rlwrap and node are on my PATH. I followed the > README.md, ie. > > cd samples/repl > ../../script/repl > > > (require '[cljs.closure :as cljsc]) > (def opts {:output-to "main.js" :output-dir "out"}) > (cljsc/build "src" opts) > > > (require '[cljs.repl :as repl]) > (require '[cljs.repl.browser :as browser]) > (def env (browser/repl-env)) > (repl/repl env) > > > .... then: > > ClojureScript:cljs.user> (.write js/document "Hi") > > ... which produced 'Hi' in the browser but produced only a carriage return > in the terminal instead of returning the repl prompt. Attempts to use up > arrow produced only ^[[A^[[A^[[A character sequences. > > I should add it's possible I may be overlooking something quite obvious :( > > gvim > > > > On 04/01/2015 03:32, David Nolen wrote: >> >> Works with rlwrap for me and others. Can you be more specific about what >> you have tried? >> >> On Saturday, January 3, 2015, gvim <gvi...@gmail.com >> <mailto:gvi...@gmail.com>> wrote: >> >> Great effort, David. One little improvement - on my Mac OS X >> Yosemite machine the 'ClojureScript:cljs.user>' repl does not appear >> to support readline unlike the leiningen Clojure repl. >> >> gvim >> > > -- > Note that posts from new members are moderated - please be patient with your > first post. > --- You received this message because you are subscribed to the Google > Groups "ClojureScript" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojurescript+unsubscr...@googlegroups.com. > To post to this group, send email to clojurescript@googlegroups.com. > Visit this group at http://groups.google.com/group/clojurescript. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at http://groups.google.com/group/clojurescript.