add shut_up_pty
This commit is contained in:
parent
ee0c0a14ef
commit
ae66a92db1
@ -4,7 +4,7 @@
|
||||
2,^[[1;5F=attribute_cursor
|
||||
#=toggle_has_attribute
|
||||
# escape - stop speech
|
||||
^[=shut_up
|
||||
^[=shut_up_pty
|
||||
# context menu key - stop speech
|
||||
^[[29~=shut_up
|
||||
# alt+shift+down - review to bottom
|
||||
|
24
src/fenrirscreenreader/commands/commands/shut_up_pty.py
Normal file
24
src/fenrirscreenreader/commands/commands/shut_up_pty.py
Normal file
@ -0,0 +1,24 @@
|
||||
#!/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Fenrir TTY screen reader
|
||||
# By Chrys, Storm Dragon, and contributers.
|
||||
|
||||
from fenrirscreenreader.core import debug
|
||||
|
||||
class command():
|
||||
def __init__(self):
|
||||
pass
|
||||
def initialize(self, environment):
|
||||
self.env = environment
|
||||
def shutdown(self):
|
||||
pass
|
||||
def getDescription(self):
|
||||
return _('interrupts the current presentation')
|
||||
def run(self):
|
||||
if len(self.env['input']['prevDeepestInput']) > len(self.env['input']['currInput']):
|
||||
return
|
||||
self.env['runtime']['outputManager'].interruptOutput()
|
||||
self.env['runtime']['screenManager'].injectTextToScreen(b'\x1b')
|
||||
def setCallback(self, callback):
|
||||
pass
|
Loading…
Reference in New Issue
Block a user