Can Java detect keyboard escape codes?
I am writing a specialized shell in java (no Swing or AWT). This is an application that will run in text-only mode with the user typing commands.
How can Java detect if the user hit the "up arrow" or "down arrow"?
I tried using the read() method of InputStream to get one byte from the
stream, but it blocks until the user hits a carriage return.