This commit is contained in:
Chrys 2019-08-22 21:48:45 +02:00
parent 2bd9ea2ee3
commit dbb3955a79

View File

@ -111,12 +111,12 @@ class driver(screenDriver):
index = str(vcsaDev[9:]) index = str(vcsaDev[9:])
vcsa[index] = open(vcsaDev,'rb') vcsa[index] = open(vcsaDev,'rb')
if index == currScreen: if index == currScreen:
lastScreenContent = vcsa[str(index)].read() lastScreenContent = vcsa[index].read()
if useVCSU: if useVCSU:
vcsuDevices = glob.glob('/dev/vcsu*') vcsuDevices = glob.glob('/dev/vcsu*')
for vcsuDev in vcsuDevices: for vcsuDev in vcsuDevices:
index = vcsuDev[9:] index = str(vcsuDev[9:])
vcsu[str(index)] = open(vcsuDev,'rb') vcsu[index] = open(vcsuDev,'rb')
self.updateCharMap(currScreen) self.updateCharMap(currScreen)
watchdog = select.epoll() watchdog = select.epoll()
watchdog.register(vcsa[currScreen], select.POLLPRI | select.POLLERR) watchdog.register(vcsa[currScreen], select.POLLPRI | select.POLLERR)