mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-26 11:30:23 +00:00
Do not clear the buffer on superfluous reopen
If someone does a reopen, try to preserve the buffer, unless connect proves there to be a deeper issue. The risk of staleness is low, but the experience of the whole screen clearing is tricky. This was not such an issue at the time, but using pyte causes clearbuffer to also clear connected client terminals.
This commit is contained in:
parent
7413c44df8
commit
a20b0abb43
@ -391,7 +391,6 @@ class ConsoleHandler(object):
|
||||
self._send_rcpts({'connectstate': self.connectstate})
|
||||
|
||||
def _got_disconnected(self):
|
||||
self.clearbuffer()
|
||||
if self.connectstate != 'unconnected':
|
||||
self.connectstate = 'unconnected'
|
||||
self.log(
|
||||
@ -400,6 +399,8 @@ class ConsoleHandler(object):
|
||||
self._send_rcpts({'connectstate': self.connectstate})
|
||||
if self._isalive:
|
||||
self._connect()
|
||||
else:
|
||||
self.clearbuffer()
|
||||
|
||||
def close(self):
|
||||
self._isalive = False
|
||||
|
Loading…
Reference in New Issue
Block a user