speed up fenrir

This commit is contained in:
chrys
2016-09-27 23:17:46 +02:00
parent b2f31fde39
commit 58e2c6812a
9 changed files with 27 additions and 31 deletions

View File

@ -17,11 +17,13 @@ class command():
return ''
def run(self):
if self.env['runtime']['inputManager'].noKeyPressed():
return
if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'interruptOnKeyPress'):
return
if self.env['screenData']['newTTY'] != self.env['screenData']['oldTTY']:
return
print(self.environment['input']['currInput'])
self.env['runtime']['outputManager'].interruptOutput()
def setCallback(self, callback):

View File

@ -17,7 +17,7 @@ class command():
return ''
def run(self):
if self.env['runtime']['inputManager'].noKeyPressed():
if not self.env['runtime']['inputManager'].noKeyPressed():
return
if self.env['screenData']['newTTY'] != self.env['screenData']['oldTTY']:
return

View File

@ -17,8 +17,6 @@ class command():
return 'No Description found'
def run(self):
if self.env['runtime']['inputManager'].noKeyPressed():
return
if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'charEcho'):
return
# detect deletion or chilling

View File

@ -18,8 +18,6 @@ class command():
return 'No Description found'
def run(self):
if self.env['runtime']['inputManager'].noKeyPressed():
return
if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'wordEcho'):
return

View File

@ -30,8 +30,6 @@ class command():
self.language = self.env['runtime']['settingsManager'].getSetting('general', 'spellCheckLanguage')
def run(self):
if self.env['runtime']['inputManager'].noKeyPressed():
return
if not self.env['runtime']['settingsManager'].getSettingAsBool('general', 'autoSpellCheck'):
return
@ -71,7 +69,7 @@ class command():
if currWord != '':
if not self.spellChecker.check(currWord):
self.env['runtime']['outputManager'].presentText('misspelled',soundIcon='mispell', interrupt=True)
self.env['runtime']['outputManager'].presentText('misspelled',soundIcon='mispell', interrupt=False)
def setCallback(self, callback):
pass

View File

@ -17,8 +17,6 @@ class command():
return 'No Description found'
def run(self):
if self.env['runtime']['inputManager'].noKeyPressed():
return
if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'charDeleteEcho'):
return