Added first attempt at xterm console support for Mac/Linux