From 62697b967c25dfc96374cb00d8545cf9ca9b7cfb Mon Sep 17 00:00:00 2001 From: Michel Oosterhof Date: Thu, 19 Feb 2015 20:01:04 +0000 Subject: [PATCH] remove the screen clear/reset on logout --- kippo/core/protocol.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kippo/core/protocol.py b/kippo/core/protocol.py index 91f1b209..65d0d847 100644 --- a/kippo/core/protocol.py +++ b/kippo/core/protocol.py @@ -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):