how can I detect arrow keys in java console not in GUI? [duplicate]
Solution 1:
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.