[Twisted-Python] Telnet & echo

James Y Knight foom at fuhm.net
Fri Aug 19 14:17:00 EDT 2005


On Aug 19, 2005, at 9:56 AM, 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:
> pwd
> /home/user/
> 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?

You want to send IAC DONT ECHO, to which the server should respond  
IAC WONT ECHO.

James





More information about the Twisted-Python mailing list