fix first loop
This commit is contained in:
parent
b90cac1896
commit
00d731d8b3
@ -15,6 +15,7 @@ class screenManager():
|
|||||||
self.env['runtime']['settingsManager'].loadDriver(\
|
self.env['runtime']['settingsManager'].loadDriver(\
|
||||||
self.env['runtime']['settingsManager'].getSetting('screen', 'driver'), 'screenDriver')
|
self.env['runtime']['settingsManager'].getSetting('screen', 'driver'), 'screenDriver')
|
||||||
self.env['runtime']['screenDriver'].getCurrScreen()
|
self.env['runtime']['screenDriver'].getCurrScreen()
|
||||||
|
self.env['runtime']['screenDriver'].getCurrScreen()
|
||||||
self.env['runtime']['screenDriver'].getSessionInformation()
|
self.env['runtime']['screenDriver'].getSessionInformation()
|
||||||
|
|
||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
|
@ -311,13 +311,6 @@ class driver(screenDriver):
|
|||||||
self.env['screen']['newContentText'], \
|
self.env['screen']['newContentText'], \
|
||||||
self.env['screen']['newContentAttrib'] =\
|
self.env['screen']['newContentAttrib'] =\
|
||||||
self.autoDecodeVCSA(self.env['screen']['newContentBytes'][4:], self.env['screen']['lines'], self.env['screen']['columns'])
|
self.autoDecodeVCSA(self.env['screen']['newContentBytes'][4:], self.env['screen']['lines'], self.env['screen']['columns'])
|
||||||
self.env['runtime']['debug'].writeDebugOut('OldTTY'+str(self.env['screen']['oldTTY'])+ ' newTTY:'+str(self.env['screen']['newTTY']),debug.debugLevel.INFO)
|
|
||||||
# fallback
|
|
||||||
if self.env['screen']['oldTTY'] == None:
|
|
||||||
self.env['screen']['oldTTY'] = self.env['screen']['newTTY']
|
|
||||||
# first run
|
|
||||||
if self.env['screen']['oldTTY'] == 0:
|
|
||||||
self.env['screen']['oldTTY'] = self.env['screen']['newTTY']
|
|
||||||
if self.env['screen']['newTTY'] != self.env['screen']['oldTTY']:
|
if self.env['screen']['newTTY'] != self.env['screen']['oldTTY']:
|
||||||
self.env['screen']['oldContentBytes'] = b''
|
self.env['screen']['oldContentBytes'] = b''
|
||||||
self.env['screen']['oldContentAttrib'] = None
|
self.env['screen']['oldContentAttrib'] = None
|
||||||
|
Loading…
Reference in New Issue
Block a user