<div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">Hi Patrick! Thanks for the suggestion. After I call self.will(LINEMODE), I get</div>
<div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><br></div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
<div>Failure: twisted.conch.telnet.OptionRefused: twisted.conch.telnet.OptionRefused:</div><div>&#39;&quot;&#39;</div></div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
<br></div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">So I know at least something is happening. I guess this just became a Telnet question instead of a twisted question. But I still don&#39;t understand how enableRemote and requestNegotiation are supposed to be used with this. Anyway, this happens in PuTTY as well as the Windows telnet client. Below is the code, if it helps, as simple as I could get it. Maybe there is something obvious that I need to do:</div>
<div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><br></div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
<br></div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><br></div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
from twisted.internet.protocol import Protocol, Factory</div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">from twisted.conch.telnet import TelnetTransport, TelnetProtocol, ITelnetProtocol</div>
<div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">from twisted.internet import reactor</div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
import sys</div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><br></div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
class EchoTransport(TelnetTransport):</div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><span style="white-space: pre-wrap; ">        </span>def __init__(self, protocolFactory=None, *a, **kw):</div>
<div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><span style="white-space: pre-wrap; ">                </span>TelnetTransport.__init__(self)</div>
<div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><span style="white-space: pre-wrap; ">                </span>if protocolFactory is not None:</div>
<div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><span style="white-space: pre-wrap; ">                        </span>self.protocolFactory = protocolFactory</div>
<div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><span style="white-space: pre-wrap; ">                        </span>self.protocolArgs = a</div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
<span style="white-space: pre-wrap; ">                        </span>self.protocolKwArgs = kw</div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">    </div>
<div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><span style="white-space: pre-wrap; ">        </span>def connectionMade(self):</div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
<span style="white-space: pre-wrap; ">                </span>TelnetTransport.connectionMade(self)</div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
<span style="white-space: pre-wrap; ">                </span>print (&quot;connection made&quot;)</div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
<br></div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><span style="white-space: pre-wrap; ">        </span>def connectionLost(self, reason):</div>
<div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><span style="white-space: pre-wrap; ">                </span>print (&quot;connection lost&quot;)</div>
<div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><span style="white-space: pre-wrap; ">                </span>reactor.stop()</div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
<span style="white-space: pre-wrap; ">                </span></div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><span style="white-space: pre-wrap; ">        </span>def applicationDataReceived(self, bytes):</div>
<div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><span style="white-space: pre-wrap; ">                </span>TelnetTransport.applicationDataReceived(self, bytes)</div>
<div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><span style="white-space: pre-wrap; ">                </span>bytes = bytes.strip()</div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
<span style="white-space: pre-wrap; ">                </span></div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><span style="white-space: pre-wrap; ">                </span>if (bytes == &#39;b&#39;):</div>
<div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><span style="white-space: pre-wrap; ">                        </span>self.will(chr(34)) # Error here</div>
<div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><span style="white-space: pre-wrap; ">                        </span></div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
<span style="white-space: pre-wrap; ">                </span>if (bytes == &#39;x&#39;):</div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><span style="white-space: pre-wrap; ">                        </span>self.transport.write(&quot;goodbye&quot;)</div>
<div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><span style="white-space: pre-wrap; ">                        </span>TelnetTransport.loseConnection(self)</div>
<div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><span style="white-space: pre-wrap; ">                </span></div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
        </div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">def main():</div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
    f = Factory()</div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">    f.protocol = lambda: EchoTransport(TelnetProtocol)</div>
<div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">    reactor.listenTCP(8023, f)</div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
    reactor.run()</div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); "><br></div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
    </div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">if __name__ == &#39;__main__&#39;:</div><div style="color: rgb(34, 34, 34); font-family: verdana, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
    main()</div>