add horizontal and vertical announcements

This commit is contained in:
chrys 2016-07-15 16:43:19 +02:00
parent 71c4ed88a5
commit 2aa5957f6d

View File

@ -51,7 +51,8 @@ class screen():
# analyze content # analyze content
environment['screenData']['newContentText'] = str(environment['screenData']['newContentBytes'][4:][::2].decode('WINDOWS-1250')) environment['screenData']['newContentText'] = str(environment['screenData']['newContentBytes'][4:][::2].decode('WINDOWS-1250'))
environment['screenData']['newContentAttrib'] = environment['screenData']['newContentBytes'][5:][::2] environment['screenData']['newContentAttrib'] = environment['screenData']['newContentBytes'][5:][::2]
if environment['screenData']['newContentText'].count('\n') == 0: if environment['screenData']['newContentText'].count('\n') != 0:
environment['screenData']['newContentText'] = environment['screenData']['newContentText'].replace('\n',"")
environment['screenData']['newContentText'] = '\n'.join(self.textWrapper.wrap(environment['screenData']['newContentText'], ))[:-2] environment['screenData']['newContentText'] = '\n'.join(self.textWrapper.wrap(environment['screenData']['newContentText'], ))[:-2]
if environment['screenData']['newTTY'] != environment['screenData']['oldTTY']: if environment['screenData']['newTTY'] != environment['screenData']['oldTTY']: