Check System.in instead of System.console() to decide graphical or
console UI.
User manual v1.1