[Twisted-Python] Telnet & echo

David Guaraglia dguaraglia at gmx.de
Fri Aug 19 10:13:00 EDT 2005

Hi Michal,

Well, it depends. If the server has a command to disable echo, then you 
should ask the server mantainer. In the case of a client side way to 
"disable" echo, there's a simple way: just save the last sent command in 
a string, and then ignore it as input in the dataReceived event. It's 
quite ugly but worked for me.


Michał Tyde wrote:

>I try to find a solution on google, but nothing I have found there
>worked in my code. The situation is:
>I have a telnet client. When I am sending a command to a server my
>dataReceived loop gets a command I send and response. For example I send
>a "pwd" command, and in dataReceived i got:
>I want to have only response.
>I try to send before sending command IAC WONT ECHO or send command
>"unset echo" but I have still a command and response in dataReceived.
>How to shutdown echo?
>Twisted-Python mailing list
>Twisted-Python at twistedmatrix.com

More information about the Twisted-Python mailing list