how can I detect arrow keys in java console not in GUI? [duplicate]

I have written a Java class RawConsoleInput that uses JNA to call operating system functions of Windows and Unix. It can be used to read the arrow keys, but the character codes are different on Windows and Unix.

Leave a Comment