Added checking of ansi and xterm256 flags to telnet data_out, to allow a manual override of the ttype results.