remove the screen clear/reset on logout

This commit is contained in:
Michel Oosterhof 2015-02-19 20:01:04 +00:00
parent c8824e94d8
commit 62697b967c
1 changed files with 4 additions and 0 deletions

View File

@ -270,6 +270,10 @@ class LoggingServerProtocol(insults.ServerProtocol):
f.close
insults.ServerProtocol.dataReceived(self, data)
# override super to remove the terminal reset on logout
def loseConnection(self):
self.transport.loseConnection()
# FIXME: this method is called 4 times on logout....
# it's called once from Avatar.closed() if disconnected
def connectionLost(self, reason):