fix vcsa
This commit is contained in:
parent
bed06374f1
commit
6761b6267c
@ -61,6 +61,7 @@ class attributeManager():
|
||||
def setAttributes(self, currAttributes):
|
||||
self.prevAttributes = self.currAttributes
|
||||
self.currAttributes = currAttributes.copy()
|
||||
|
||||
def getAttributeByXY(self, x, y):
|
||||
if not self.currAttributes:
|
||||
return None
|
||||
|
@ -212,9 +212,14 @@ class driver(screenDriver):
|
||||
},
|
||||
'screen': screen,
|
||||
'screenUpdateTime': time.time(),
|
||||
'text': '',
|
||||
'attributes': [],
|
||||
}
|
||||
try:
|
||||
eventData['text'], eventData['attributes'] =\
|
||||
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
|
||||
if vcsuContent != None:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user