improve intial PTY emulation

This commit is contained in:
chrys
2018-03-24 02:11:55 +01:00
parent cbe51364fb
commit 8a4f2ac194
2 changed files with 4 additions and 8 deletions

View File

@ -56,11 +56,9 @@ class screenManager():
self.env['screen']['newCursor']['x'] = int( eventData['textCursor']['x'])
self.env['screen']['newCursor']['y'] = int( eventData['textCursor']['y'])
self.env['screen']['newTTY'] = eventData['screen']
# analyze content
#self.updateCharMap(str(self.env['screen']['newTTY']))
self.env['screen']['newContentText'] = eventData['text']
self.env['screen']['newContentAttrib'] = eventData['attributes']
# screen change
if self.env['screen']['newTTY'] != self.env['screen']['oldTTY']:
self.env['screen']['oldContentBytes'] = b''
self.env['screen']['oldContentAttrib'] = None