[Twisted-Python] Using twisted.conch.recvline

Itamar Shtull-Trauring itamar at itamarst.org
Thu Jun 2 08:59:53 MDT 2005


On Thu, 2005-06-02 at 10:04 -0400, Abe Fettig wrote:

> Thanks, it worked! I changed the nextLine() method of
> insults.ServerProtocol to use \r\n:
> 
> class PatchedServerProtocol(insults.ServerProtocol):
>     def nextLine(self):
>         self.cursorPos.x = 0
>         self.cursorPos.y = min(self.cursorPos.y + 1, self.termSize.y - 1)
>         self.transport.write('\r\n') # this is the only change
> 
> Is this something that should be fixed in insults? I can submit a patch
> to the bug tracker.

It sounds like it should be fixed, yes.






More information about the Twisted-Python mailing list