How can I read a single character/key from the console without having to hit Enter? There is an old entry in Sun's bug database claiming that it can't be done in pure java. I've found these approaches
- JNI
- JLine [http://jline.sourceforge.net/]
- Javacurses [http://sourceforge.net/projects/javacurses/]
I'd expect to add a single magic-readkey.jar
to my classpath, and to write a few lines of code, like (def just-hit (com.acme.MagicConsole/read-char))
.