I get a dumb terminal through lein
whereas I get a non-dumb terminal through the uberjar. What's lein
doing to cause this and how to fix it? This is happening on a Win 10 terminal
my project dependencies:
:dependencies [[org.clojure/clojure "1.9.0"]
[org.jline/jline "3.11.0"]
[org.fusesource.jansi/jansi "1.18"]]
the main function:
(defn -main
[& args]
(let [term (.. (TerminalBuilder/builder)
(system true)
(build))
reader (.. LineReaderBuilder
(builder)
(terminal term)
(build))]
(println (.getName term) (.getType term))
(let [line (.readLine reader "hello world> ")]
(.. term (writer) (println (str "====> " line)))
(.flush term))))
thru lein run
I get a dumb terminal:
> lein run
Jun 02, 2019 11:58:20 AM org.jline.utils.Log logr
WARNING: Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)
JLine terminal dumb
hello world> hi
====> hi
thru uberjar the terminal is not dumb:
> lein uberjar
...
> java -jar target\uberjar\terminal-0.1.0-SNAPSHOT-standalone.jar
JLine terminal windows-vtp
hello world> hi
====> hi