<font face="verdana,sans-serif">Hi all,</font><div><font face="verdana,sans-serif"><br></font></div><div><font face="verdana,sans-serif">I&#39;m writing a twisted Telnet server and I want a client to be able to connect to it through some other interface, such as PuTTY.  I can make the connection fine. But one of my requirements is to be able to tell the client to switch back and forth between buffered and unbuffered input modes depending on the state of the server. (Sometimes, the client should enter text, then hit enter to send. Other times, the client should send data character-by-character).</font></div>
<div><font face="verdana,sans-serif"><br></font></div><div><font face="verdana,sans-serif">I&#39;m new at this, and maybe I&#39;m missing something, but in my TelnetTransport object, I do something like this </font><span class="Apple-style-span" style="font-family: verdana, sans-serif; ">to disable buffering of client data</span><span class="Apple-style-span" style="font-family: verdana, sans-serif; ">:</span></div>
<div><font face="verdana,sans-serif"><br></font></div><div><font face="verdana,sans-serif">self.transport.write(IAC + WILL + LINEMODE)</font></div><div><font face="verdana,sans-serif">self.transport.write(IAC + SB + LINEMODE + MODE + chr(0) + IAC + SE)</font></div>
<div><font face="verdana,sans-serif"><br></font></div><div><font face="verdana,sans-serif">Not working though. PuTTY still requires me to hit &lt;enter&gt; after I type. I&#39;ve tried various combinations of the above. I&#39;m sure I&#39;m doing something wrong but its just really hard to find an example of this on the net. I&#39;d appreciate some advice as to how to proceed, or a simple example if you have time...</font></div>
<div><font face="verdana,sans-serif"><br></font></div><div><font face="verdana,sans-serif">I&#39;m using the twisted Telnet classes found here:</font></div><div><a href="http://twistedmatrix.com/trac/browser/tags/releases/twisted-8.2.0/twisted/conch/telnet.py">http://twistedmatrix.com/trac/browser/tags/releases/twisted-8.2.0/twisted/conch/telnet.py</a></div>
<div><font face="verdana,sans-serif"><br></font></div><div><font face="verdana,sans-serif">Thanks!</font></div><div><font face="verdana,sans-serif"><br></font></div>