unify more loops, remove spaces

This commit is contained in:
Chrys 2019-09-05 23:12:05 +02:00
parent 8663ad1ac9
commit 3f85d672a6
12 changed files with 96 additions and 96 deletions

View File

@ -47,7 +47,7 @@ class driver(screenDriver):
False, # blink False, # blink
'default', # fontsize 'default', # fontsize
'default' # fontfamily 'default' # fontfamily
]) #end attribute ) ]) #end attribute )
self.env['runtime']['processManager'].addCustomEventThread(self.updateWatchdog, multiprocess=True) self.env['runtime']['processManager'].addCustomEventThread(self.updateWatchdog, multiprocess=True)
def getCurrScreen(self): def getCurrScreen(self):
self.env['screen']['oldTTY'] = self.env['screen']['newTTY'] self.env['screen']['oldTTY'] = self.env['screen']['newTTY']
@ -121,7 +121,7 @@ class driver(screenDriver):
watchdog = select.epoll() watchdog = select.epoll()
watchdog.register(vcsa[currScreen], select.POLLPRI | select.POLLERR) watchdog.register(vcsa[currScreen], select.POLLPRI | select.POLLERR)
watchdog.register(tty, select.POLLPRI | select.POLLERR) watchdog.register(tty, select.POLLPRI | select.POLLERR)
while active.value == 1: while active.value:
changes = watchdog.poll(1) changes = watchdog.poll(1)
for change in changes: for change in changes:
fileno = change[0] fileno = change[0]