Working version of command line class CommandLine: open GUI, press Enter, GUI hangs, but from console can enter commands and get output.  Will work with things such as dc which retain console, and don't move on.  Used InputStreamREader.ready() to establish when command has completed sending output from it.