Is there an elegant way to fire an event when characters are available from System.in? I\'d like to avoid polling InputStream.available().
System.in
InputStream.available()
new Thread(){ public void run() { while(System.in.get()){ } }.start();