Skip to content
Browse files

Focus the JConsole after creating the JFrame, so that you can start t…

…yping into the REPL immediately
  • Loading branch information...
1 parent ee30567 commit 4641a8186c3dfb04882c648aa83c2a7242509b9e @ivan ivan committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/clj/org/dipert/swingrepl/main.clj
2 src/clj/org/dipert/swingrepl/main.clj
@@ -36,6 +36,7 @@
(doto jframe
(.setSize width height))
+ (.requestFocus console)
(binding [*out* (.getOut console)
*in* (clojure.lang.LineNumberingPushbackReader. (.getIn console))
*err* (.getOut console)]
@@ -91,6 +92,7 @@
(doto jframe#
(.setSize (:width opts#) (:height opts#)))
+ (.requestFocus console#)
(binding [*out* (.getOut console#)
*in* (clojure.lang.LineNumberingPushbackReader. (.getIn console#))
*err* (.getOut console#)]

0 comments on commit 4641a81

Please sign in to comment.
Something went wrong with that request. Please try again.