keyboard echo

This commit is contained in:
chrys 2016-07-17 14:37:56 +02:00
parent 0410c33a08
commit e020271908

View File

@ -4,11 +4,9 @@ class command():
def __init__(self): def __init__(self):
pass pass
def run(self, environment): def run(self, environment):
print(environment['runtime']['settingsManager'].getSettingAsBool(environment, 'keyboard', 'charEcho') )
if not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'keyboard', 'charEcho') and\ if not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'keyboard', 'charEcho') and\
len(environment['screenData']['newDelta']) <= 2 and \ len(environment['screenData']['newDelta']) <= 2 and \
environment['screenData']['newCursor'] != environment['screenData']['oldCursor']: environment['screenData']['newCursor'] != environment['screenData']['oldCursor']:
print('dri')
return environment return environment
if environment['screenData']['newDelta'] == environment['screenData']['oldDelta'] and \ if environment['screenData']['newDelta'] == environment['screenData']['oldDelta'] and \
environment['screenData']['newTTY'] == environment['screenData']['oldTTY']: environment['screenData']['newTTY'] == environment['screenData']['oldTTY']: