Merge branch 'bleed' of https://github.com/chrys87/fenrir into bleed

This commit is contained in:
Storm Dragon 2018-03-24 21:30:13 -04:00
commit 28fcdf0f32

View File

@ -90,10 +90,13 @@ class fenrirManager():
return
if event['Data'] == b'':
return
self.handleControlMode(event['Data'])
if self.controlMode and not self.switchCtrlModeOnce == 1 or\
not self.controlMode and self.switchCtrlModeOnce == 1:
self.detectByteCommand(event['Data'])
def handleControlMode(self, escapeSequence):
if self.switchCtrlModeOnce > 0:
self.switchCtrlModeOnce -= 1