Java unbuffered input on the console for cross-platform linux,mac,windows