I made some progress using clojure-lanterna
library. With the following code I can read and process one character but there is big side effect. The terminal window gets cleared when the program starts. Is there a way to avoid it?
(ns lonely-dobble.user-input
(:require [clojure.string :as str])
(:require [lanterna.terminal :as t])
(:gen-class))
(def term (t/get-terminal :text))
(defn -main
"I don't do a whole lot ... yet."
[& args]
(t/start term)
(let [character (t/get-key-blocking term)]
(t/stop term)
(println character)))