code: def _process_option(self, tsocket, command, option):
          
          if command == DO and option == TTYPE:
              tsocket.sendall(IAC + WILL + TTYPE)
              tsocket.sendall(IAC + SB + TTYPE + b"\0" + b"xterm" + IAC + SE)
          elif command in (DO, DONT):
              tsocket.sendall(IAC + WONT + option)
          elif command in (WILL, WONT):
              tsocket.sendall(IAC + DONT + option)
docs: For all telnet options, re-implement the default telnetlib behaviour
          and refuse to handle any options. If the server expresses interest in
          'terminal type' option, then reply back with 'xterm' terminal type.