def _initialize_telnet(connection):
    logger.info('Initializing telnet connection')
    connection.send(((IAC + DO) + LINEMODE))
    connection.send(((IAC + WILL) + SUPPRESS_GO_AHEAD))
    connection.send(((((((IAC + SB) + LINEMODE) + MODE) + int2byte(0)) + IAC) + SE))
    connection.send(((IAC + WILL) + ECHO))
    connection.send(((IAC + DO) + NAWS))
def _initialize_telnet(connection):
    logger.info('Initializing telnet connection')
    connection.send(((IAC + DO) + LINEMODE))
    connection.send(((IAC + WILL) + SUPPRESS_GO_AHEAD))
    connection.send(((((((IAC + SB) + LINEMODE) + MODE) + int2byte(0)) + IAC) + SE))
    connection.send(((IAC + WILL) + ECHO))
    connection.send(((IAC + DO) + NAWS))