RawConsoleInput - Read single characters from the console

The current Java JDK API does not allow reading single key strokes from the console. Console input is only supported in line mode. JLine supports reading single keys, but not without blocking, and it's a large and complex package.

The RawConsoleInput class uses JNA to call operating system functions of Windows and Unix/Linux.


Source code: RawConsoleInput.java

Author: Christian d'Heureuse (www.source-code.biz, www.inventec.ch/chdh)