fix bug
This commit is contained in:
parent
8753415f65
commit
86fe813313
@ -20,6 +20,9 @@ class byteManager():
|
|||||||
convertedEscapeSequence = escapeSequence
|
convertedEscapeSequence = escapeSequence
|
||||||
if convertedEscapeSequence[0] == 27:
|
if convertedEscapeSequence[0] == 27:
|
||||||
convertedEscapeSequence = b'^[' + convertedEscapeSequence[1:]
|
convertedEscapeSequence = b'^[' + convertedEscapeSequence[1:]
|
||||||
|
if len(convertedEscapeSequence) > 1:
|
||||||
|
if convertedEscapeSequence[0] == 94 and convertedEscapeSequence[1] ==91:
|
||||||
|
convertedEscapeSequence = b'^[' + convertedEscapeSequence[2:]
|
||||||
return convertedEscapeSequence
|
return convertedEscapeSequence
|
||||||
def loadByteShortcuts(self, kbConfigPath=fenrirPath + '/../../config/keyboard/pty.conf'):
|
def loadByteShortcuts(self, kbConfigPath=fenrirPath + '/../../config/keyboard/pty.conf'):
|
||||||
kbConfig = open(kbConfigPath,"r")
|
kbConfig = open(kbConfigPath,"r")
|
||||||
|
@ -108,7 +108,8 @@ class fenrirManager():
|
|||||||
self.environment['runtime']['screenManager'].injectTextToScreen(event['Data'])
|
self.environment['runtime']['screenManager'].injectTextToScreen(event['Data'])
|
||||||
def handleControlMode(self, escapeSequence):
|
def handleControlMode(self, escapeSequence):
|
||||||
convertedEscapeSequence = self.environment['runtime']['byteManager'].unifyEscapeSeq(escapeSequence)
|
convertedEscapeSequence = self.environment['runtime']['byteManager'].unifyEscapeSeq(escapeSequence)
|
||||||
|
if len(convertedEscapeSequence) > 1:
|
||||||
|
print(chr(convertedEscapeSequence[0]),chr(convertedEscapeSequence[1]))
|
||||||
if convertedEscapeSequence == b'^[R':
|
if convertedEscapeSequence == b'^[R':
|
||||||
self.controlMode = not self.controlMode
|
self.controlMode = not self.controlMode
|
||||||
self.switchCtrlModeOnce = 0
|
self.switchCtrlModeOnce = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user