'Hack to send ignore messages when we aren\'t echoing.'

def _writeHack(self, data):

    if (self.pty is not None):
        attr = tty.tcgetattr(self.pty.fileno())[3]
        if ((not (attr & tty.ECHO)) and (attr & tty.ICANON)):
            self.avatar.conn.transport.sendIgnore(('\x00' * (8 + len(data))))
    self.oldWrite(data)
