Ivan Bout
2004-12-11 12:52:28 UTC
Hi!
Does anyone know a way how to capture keyboard events from a
console program without using java.awt.events?
I tried:
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String s;
s = br.readLine();
But the problem is that I have to press the enter key each time.
Thanks in advance
Ivan
Does anyone know a way how to capture keyboard events from a
console program without using java.awt.events?
I tried:
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String s;
s = br.readLine();
But the problem is that I have to press the enter key each time.
Thanks in advance
Ivan