mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 09:32:21 +00:00
Remove 'null' workaround to UEFI not resetting appmode
Firmware fixes obsolete the need. The bad behavior on older firmware is sufficiently tolerable that code to workaround that could have bad side effects can reasonably be abolished.
This commit is contained in:
parent
8fa8951896
commit
e2e2d884b7
@ -136,15 +136,9 @@ class _ConsoleHandler(object):
|
||||
if data == conapi.ConsoleEvent.Disconnect:
|
||||
self._got_disconnected()
|
||||
return
|
||||
prefix = ''
|
||||
if '\0' in data: # there is a null in the output
|
||||
# the proper response is to do nothing, but here using it as a cue
|
||||
# that perhaps firmware has reset since that's the only place
|
||||
# observed so far. Lose the shiftin and app mode when detected
|
||||
prefix = '\x1b[?1l'
|
||||
self.shiftin = None
|
||||
if '\x1b[?1l' in data: # request for ansi mode cursor keys
|
||||
self.appmodedetected = False
|
||||
if '\x1b[?1h' in data: # remember the session wants the client to be in
|
||||
if '\x1b[?1h' in data: # remember the session wants the client to use
|
||||
# 'application mode' Thus far only observed on esxi
|
||||
self.appmodedetected = True
|
||||
if '\x1b)0' in data:
|
||||
@ -162,7 +156,7 @@ class _ConsoleHandler(object):
|
||||
# certificate signing request
|
||||
if len(self.buffer) > 16384:
|
||||
self.flushbuffer()
|
||||
self._send_rcpts(prefix + data)
|
||||
self._send_rcpts(data)
|
||||
|
||||
def _send_rcpts(self, data):
|
||||
for rcpt in self.rcpts.itervalues():
|
||||
|
Loading…
Reference in New Issue
Block a user