Hi, I wrote this code to redirect a repl to a JFrame. I used the JConsole class from Beanshell
(def console (bsh.util.JConsole.)) (def frame (doto (javax.swing.JFrame.) (.add console) (.setSize 500 500) (.setVisible true) )) (binding [*out* (java.io.OutputStreamWriter. (.getOut console))] [*in* (clojure.lang.LineNumberingPushbackReader. (.getIn console))] (.start (Thread. #(clojure.main/repl)))) But it doesn't work. *in* and *out* are not redirected. If I change the last line from (.start (Thread. #(clojure.main/repl)))) to (clojure.main/repl) then *out* gets redirected but not *in* Am I doing something wrong here? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en