Moved the telnet negotiation sequence BEFORE the terminal-detection sequence (fixes the auto-ANSI detection with CRT).