workarround correct text wrapping

This commit is contained in:
chrys 2016-07-07 17:34:26 +02:00
parent a7af5fadde
commit 1f07f3f6e7

View File

@ -39,9 +39,9 @@ while(runtime['running']):
# analyze content
runtime['newContentText'] = str(runtime['newContentBytes'][4:][::2].decode('cp1252').encode('utf-8'))[2:-1]
runtime['newContentText'] = str(runtime['newContentBytes'][4:][::2].decode('cp1252').encode('utf-8'))[2:]
runtime['newContentAttrib'] = runtime['newContentBytes'][5:][::2]
runtime['newContentText'] = '\n'.join(textwrap.wrap(runtime['newContentText'], runtime['columns']))[:-1]
runtime['newContentText'] = '\n'.join(textwrap.wrap(runtime['newContentText'], runtime['columns']))[:-2]
print("|"+runtime['newContentText'] +"|")
print(runtime['newTTY'])
if runtime['newTTY'] != runtime['oldTTY']: