add sounds for bypass

This commit is contained in:
chrys 2018-03-25 13:07:02 +02:00
parent 28fcdf0f32
commit 42c2c6a562
4 changed files with 9 additions and 0 deletions

View File

@ -1,6 +1,8 @@
# Screen Reader Turned On or Off
ScreenReaderOn='ScreenReaderOn.wav'
ScreenReaderOff='ScreenReaderOff.wav'
# PTY bypass
PTYBypass='PTYBypass.wav'
# Cancel the current command
Cancel='Cancel.wav'
# Accept command

View File

@ -1,6 +1,8 @@
# Screen Reader Turned On or Off
ScreenReaderOn=''
ScreenReaderOff=''
# PTY bypass
PTYBypass=''
# Cancel the current command
Cancel=''
# Accept command

View File

@ -103,8 +103,13 @@ class fenrirManager():
if escapeSequence in [b'\x1bR', b'^[R']:
self.controlMode = not self.controlMode
self.switchCtrlModeOnce = 0
if self.controlMode:
self.environment['runtime']['outputManager'].presentText(_('Sticky Mode On'), soundIcon='Accept', interrupt=True, flush=True)
else:
self.environment['runtime']['outputManager'].presentText(_('Sticky Mode On'), soundIcon='Accept', interrupt=True, flush=True)
if escapeSequence in [b'\x1b:', b'^[:']:
self.switchCtrlModeOnce = 2
self.environment['runtime']['outputManager'].presentText(_('bypass'), soundIcon='PTYBypass', interrupt=True, flush=True)
def handleExecuteCommand(self, event):
if event['Data'] == '':