fix some other things :)

This commit is contained in:
chrys 2016-07-17 01:20:42 +02:00
parent 15d11c96f0
commit 027be8a80b
5 changed files with 10 additions and 12 deletions

View File

@ -8,7 +8,6 @@ class command():
environment['screenData']['newDelta'] == environment['screenData']['oldDelta']: environment['screenData']['newDelta'] == environment['screenData']['oldDelta']:
return environment return environment
environment['runtime']['outputManager'].interruptOutput(environment) environment['runtime']['outputManager'].interruptOutput(environment)
print('10000-shut_up.py')
return environment return environment
def setCallback(self, callback): def setCallback(self, callback):
pass pass

View File

@ -7,11 +7,10 @@ class command():
if environment['screenData']['newCursor']['y'] != environment['screenData']['oldCursor']['y'] or\ if environment['screenData']['newCursor']['y'] != environment['screenData']['oldCursor']['y'] or\
environment['screenData']['newCursor']['x'] == environment['screenData']['oldCursor']['x']: environment['screenData']['newCursor']['x'] == environment['screenData']['oldCursor']['x']:
return environment return environment
if environment['screenData']['newDelta'] == environment['screenData']['oldDelta']:
if environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursor']['y']][environment['screenData']['newCursor']['x']].replace(" ","").replace("\n","").replace("\t","") == '': if environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursor']['y']][environment['screenData']['newCursor']['x']].replace(" ","").replace("\n","").replace("\t","") == '':
environment['runtime']['outputManager'].presentText(environment, "blank") environment['runtime']['outputManager'].presentText(environment, "blank",True)
else: else:
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursor']['y']][environment['screenData']['newCursor']['x']]) environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursor']['y']][environment['screenData']['newCursor']['x']],True)
return environment return environment
def setCallback(self, callback): def setCallback(self, callback):

View File

@ -9,9 +9,9 @@ class command():
if environment['screenData']['newCursor']['y'] == environment['screenData']['oldCursor']['y']: if environment['screenData']['newCursor']['y'] == environment['screenData']['oldCursor']['y']:
return environment return environment
if environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursor']['y']].replace(" ","").replace("\n","").replace("\t","") == '': if environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursor']['y']].replace(" ","").replace("\n","").replace("\t","") == '':
environment['runtime']['outputManager'].presentText(environment, "blank") environment['runtime']['outputManager'].presentText(environment, "blank", True)
else: else:
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursor']['y']]) environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursor']['y']], True)
return environment return environment
def setCallback(self, callback): def setCallback(self, callback):
pass pass

View File

@ -7,7 +7,7 @@ class command():
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']:
return environment return environment
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newDelta'],len(environment['screenData']['newDelta']) == 1) environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newDelta'],False)
return environment return environment
def setCallback(self, callback): def setCallback(self, callback):
pass pass

View File

@ -27,9 +27,9 @@ class screen():
except: except:
return environment return environment
if trigger != 'onInput' and False: # so we already moved the cursor and is not input -> screenUpdate was faster if trigger != 'onInput' and False: # so we already moved the cursor and is not input -> screenUpdate was faster
if ((newContentBytes[2] != environment['screenData']['oldCursor']['x']) or\ if ((newContentBytes[2] != environment['screenData']['newCursor']['x']) or\
(newContentBytes[3] != environment['screenData']['oldCursor']['y'])) and\ (newContentBytes[3] != environment['screenData']['newCursor']['y'])) and\
(newTTY == environment['screenData']['oldTTY']): (newTTY == environment['screenData']['newTTY']):
return environment return environment
# set new "old" values # set new "old" values
environment['screenData']['oldContentBytes'] = environment['screenData']['newContentBytes'] environment['screenData']['oldContentBytes'] = environment['screenData']['newContentBytes']