Listen for keys in non-GUI app?

Is there a way for a non-gui application that runs in a dos-box to receive key strokes? i read about the CTRL-C shutdown hook, but i don't want to shutdown my app but just send them some key combination so that it print something to System.out. Is this possible?
[277 byte] By [MartinHilpert] at [2007-9-30 15:19:40]
# 1
AFAIK, no.
PhHein at 2007-7-5 22:24:09 > top of Java-index,Java Essentials,Java Programming...
# 2
You could try jcurses or a similar library... http://sourceforge.net/projects/javacurses/
jsalonen at 2007-7-5 22:24:09 > top of Java-index,Java Essentials,Java Programming...