add debug

This commit is contained in:
chrys 2017-07-02 00:41:26 +02:00
parent 9c137ef27b
commit 2c7d3426e5

View File

@ -116,6 +116,7 @@ class driver():
fileno = change[0] fileno = change[0]
event = change[1] event = change[1]
if fileno == tty.fileno(): if fileno == tty.fileno():
self.env['runtime']['debug'].writeDebugOut('ScreenChange' + str(e),debug.debugLevel.INFO)
tty.seek(0) tty.seek(0)
currScreen = str(tty.read()[3:-1]) currScreen = str(tty.read()[3:-1])
if currScreen != oldScreen: if currScreen != oldScreen:
@ -126,6 +127,7 @@ class driver():
vcsa[currScreen].seek(0) vcsa[currScreen].seek(0)
lastScreenContent = vcsa[currScreen].read() lastScreenContent = vcsa[currScreen].read()
else: else:
self.env['runtime']['debug'].writeDebugOut('ScreenUpdate',debug.debugLevel.INFO)
vcsa[currScreen].seek(0) vcsa[currScreen].seek(0)
screenContent = vcsa[currScreen].read() screenContent = vcsa[currScreen].read()
if screenContent != lastScreenContent: if screenContent != lastScreenContent: