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):
pass
def run(self, environment):
print(environment['runtime']['settingsManager'].getSettingAsBool(environment, 'keyboard', 'charEcho') )
if not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'keyboard', 'charEcho') and\
len(environment['screenData']['newDelta']) <= 2 and \
environment['screenData']['newCursor'] != environment['screenData']['oldCursor']:
print('dri')
return environment
if environment['screenData']['newDelta'] == environment['screenData']['oldDelta'] and \
environment['screenData']['newTTY'] == environment['screenData']['oldTTY']: