fix vcsa
This commit is contained in:
parent
bed06374f1
commit
6761b6267c
@ -61,6 +61,7 @@ class attributeManager():
|
|||||||
def setAttributes(self, currAttributes):
|
def setAttributes(self, currAttributes):
|
||||||
self.prevAttributes = self.currAttributes
|
self.prevAttributes = self.currAttributes
|
||||||
self.currAttributes = currAttributes.copy()
|
self.currAttributes = currAttributes.copy()
|
||||||
|
|
||||||
def getAttributeByXY(self, x, y):
|
def getAttributeByXY(self, x, y):
|
||||||
if not self.currAttributes:
|
if not self.currAttributes:
|
||||||
return None
|
return None
|
||||||
|
@ -212,9 +212,14 @@ class driver(screenDriver):
|
|||||||
},
|
},
|
||||||
'screen': screen,
|
'screen': screen,
|
||||||
'screenUpdateTime': time.time(),
|
'screenUpdateTime': time.time(),
|
||||||
|
'text': '',
|
||||||
|
'attributes': [],
|
||||||
}
|
}
|
||||||
|
try:
|
||||||
eventData['text'], eventData['attributes'] =\
|
eventData['text'], eventData['attributes'] =\
|
||||||
self.autoDecodeVCSA(vcsaContent[4:], eventData['lines'], eventData['columns'])
|
self.autoDecodeVCSA(vcsaContent[4:], eventData['lines'], eventData['columns'])
|
||||||
|
except:
|
||||||
|
pass
|
||||||
# VCSU seems to give b' ' instead of b'\x00\x00\x00' (tsp), deactivated until its fixed
|
# VCSU seems to give b' ' instead of b'\x00\x00\x00' (tsp), deactivated until its fixed
|
||||||
if vcsuContent != None:
|
if vcsuContent != None:
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user