UTF-8 and TODO

This commit is contained in:
chrys 2016-08-28 18:06:27 +02:00
parent ed75db0c94
commit 2514a87b33
2 changed files with 1 additions and 4 deletions

3
TODO
View File

@ -12,9 +12,6 @@ ToDos in Priority order:
cleanup inputManager [-] cleanup inputManager [-]
- Known Bugs - 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 sometimes the screen is spoken from the beginning without need to
- implement commands - implement commands

View File

@ -49,7 +49,7 @@ class screen():
environment['screenData']['newCursor']['x'] = int( environment['screenData']['newContentBytes'][2]) environment['screenData']['newCursor']['x'] = int( environment['screenData']['newContentBytes'][2])
environment['screenData']['newCursor']['y'] = int( environment['screenData']['newContentBytes'][3]) environment['screenData']['newCursor']['y'] = int( environment['screenData']['newContentBytes'][3])
# analyze content # 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']['newContentAttrib'] = environment['screenData']['newContentBytes'][5:][::2]
#environment['screenData']['newContentText'] = '\n'.join(self.textWrapper.wrap(environment['screenData']['newContentText'], ))[:-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']) environment['screenData']['newContentText'] = self.insert_newlines(environment['screenData']['newContentText'], environment['screenData']['columns'])