Made $CON environmental optional, defaulting to /dev/tty.