This commit is contained in:
chrys 2018-03-27 00:40:15 +02:00
parent 7182bc6556
commit 93f0551131
2 changed files with 2 additions and 4 deletions

View File

@ -109,8 +109,6 @@ 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

View File

@ -215,14 +215,14 @@ class settingsManager():
if cliArgs.print: if cliArgs.print:
self.setOptionArgDict('general', 'debugLevel', 3) self.setOptionArgDict('general', 'debugLevel', 3)
self.setOptionArgDict('general', 'debugMode', 'PRINT') self.setOptionArgDict('general', 'debugMode', 'PRINT')
if cliArgs.emulation: if cliArgs.emulated_pty:
self.setOptionArgDict('screen', 'driver', 'ptyDriver') self.setOptionArgDict('screen', 'driver', 'ptyDriver')
self.setOptionArgDict('keyboard', 'driver', 'ptyDriver') self.setOptionArgDict('keyboard', 'driver', 'ptyDriver')
# TODO needs cleanup use dict # TODO needs cleanup use dict
#self.setOptionArgDict('keyboard', 'keyboardLayout', 'pty') #self.setOptionArgDict('keyboard', 'keyboardLayout', 'pty')
self.setSetting('keyboard', 'keyboardLayout', 'pty') self.setSetting('keyboard', 'keyboardLayout', 'pty')
self.setOptionArgDict('general', 'debugFile', '/tmp/fenrir-pty.log') self.setOptionArgDict('general', 'debugFile', '/tmp/fenrir-pty.log')
if cliArgs.emulated-evdev: if cliArgs.emulated_evdev:
self.setOptionArgDict('screen', 'driver', 'ptyDriver') self.setOptionArgDict('screen', 'driver', 'ptyDriver')
self.setOptionArgDict('keyboard', 'driver', 'evdevDriver') self.setOptionArgDict('keyboard', 'driver', 'evdevDriver')