diff --git a/TODO b/TODO index 8433f4a5..dc185a25 100644 --- a/TODO +++ b/TODO @@ -12,9 +12,6 @@ ToDos in Priority order: cleanup inputManager [-] - Known Bugs - fix line wrapping bug (multible lines and make a linebreak in the middle of a line) - print(str(b'\x94'.decode('cp850')).encode('utf-8').decode('utf-8')) - handle ncurses "optimisations.." sometimes the screen is spoken from the beginning without need to - implement commands diff --git a/src/fenrir-package/screen/linux.py b/src/fenrir-package/screen/linux.py index 48a56248..cce11368 100644 --- a/src/fenrir-package/screen/linux.py +++ b/src/fenrir-package/screen/linux.py @@ -49,7 +49,7 @@ class screen(): environment['screenData']['newCursor']['x'] = int( environment['screenData']['newContentBytes'][2]) environment['screenData']['newCursor']['y'] = int( environment['screenData']['newContentBytes'][3]) # analyze content - environment['screenData']['newContentText'] = environment['screenData']['newContentBytes'][4:][::2].decode(screenEncoding, "replace") + environment['screenData']['newContentText'] = environment['screenData']['newContentBytes'][4:][::2].decode(screenEncoding, "replace").encode('utf-8').decode('utf-8') environment['screenData']['newContentAttrib'] = environment['screenData']['newContentBytes'][5:][::2] #environment['screenData']['newContentText'] = '\n'.join(self.textWrapper.wrap(environment['screenData']['newContentText'], ))[:-2] environment['screenData']['newContentText'] = self.insert_newlines(environment['screenData']['newContentText'], environment['screenData']['columns'])