fix ncurses apps

This commit is contained in:
chrys
2016-08-28 17:21:05 +02:00
parent 9ce32b484c
commit 621a6d4aa6
4 changed files with 12 additions and 9 deletions

View File

@ -10,12 +10,14 @@ class command():
# detect an change on the screen, we just want to cursor arround, so no change should appear
if environment['screenData']['newDelta'] != '':
return environment
if environment['screenData']['newNegativeDelta'] != '':
return environment
# is it a horizontal change?
if environment['screenData']['newCursor']['y'] != environment['screenData']['oldCursor']['y'] or\
environment['screenData']['newCursor']['x'] == environment['screenData']['oldCursor']['x']:
return environment
if environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursor']['y']][environment['screenData']['newCursor']['x']].strip(" \t\n") == '':
if environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursor']['y']][environment['screenData']['newCursor']['x']].strip() == '':
pass
#environment['runtime']['outputManager'].presentText(environment, "blank",True)
else:

View File

@ -17,7 +17,7 @@ class command():
return environment
# More than just a deletion happend
if environment['screenData']['newDelta'].strip(" \t\n") != '':
if environment['screenData']['newDelta'].strip() != '':
if environment['screenData']['newDelta'] != environment['screenData']['oldDelta']:
return environment