add horizontal and vertical announcements
This commit is contained in:
parent
71c4ed88a5
commit
2aa5957f6d
@ -51,8 +51,9 @@ 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'] = '\n'.join(self.textWrapper.wrap(environment['screenData']['newContentText'], ))[:-2]
|
environment['screenData']['newContentText'] = environment['screenData']['newContentText'].replace('\n',"")
|
||||||
|
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']:
|
||||||
self.textWrapper.width = environment['screenData']['columns']
|
self.textWrapper.width = environment['screenData']['columns']
|
||||||
|
Loading…
Reference in New Issue
Block a user