<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I looked at your code a bit more, read below.<div><br></div><div><br><div><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br><div><div>On Nov 16, 2009, at 9:14 AM, <a href="mailto:filoufake-python@yahoo.fr">filoufake-python@yahoo.fr</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br> &nbsp;&nbsp;&nbsp;raise NotImplementedError("Not supported by this realm")<br><br>class MyTelnet(StatefulTelnetProtocol):<br> &nbsp;def telnet_Command(self, line):<br> &nbsp;&nbsp;&nbsp;print "line received via telnet", line<br> &nbsp;&nbsp;&nbsp;self.sendLine('coucou man, you send me %s' % line)<br></div></blockquote></div></div></blockquote><div><br></div>According to the documentation: <font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">the default telnet_User method returns 'Password' to go into Password mode, and the default telnet_Password method returns 'Command' to go into Command mode."</span></font></div><div><br></div><div>The problem, I'm guessing, is your reimplementing the telnet_Command method wherein you don't appropriately handle turning echo back on. My suggestion would be to look in Twisted's code to find the "default" command method, there should be something obvious there which performs the function that you need.</div><div><br></div><br></div></div></body></html>