unify more loops, remove spaces
This commit is contained in:
parent
8663ad1ac9
commit
3f85d672a6
@ -47,7 +47,7 @@ class driver(screenDriver):
|
||||
False, # blink
|
||||
'default', # fontsize
|
||||
'default' # fontfamily
|
||||
]) #end attribute )
|
||||
]) #end attribute )
|
||||
self.env['runtime']['processManager'].addCustomEventThread(self.updateWatchdog, multiprocess=True)
|
||||
def getCurrScreen(self):
|
||||
self.env['screen']['oldTTY'] = self.env['screen']['newTTY']
|
||||
@ -121,7 +121,7 @@ class driver(screenDriver):
|
||||
watchdog = select.epoll()
|
||||
watchdog.register(vcsa[currScreen], select.POLLPRI | select.POLLERR)
|
||||
watchdog.register(tty, select.POLLPRI | select.POLLERR)
|
||||
while active.value == 1:
|
||||
while active.value:
|
||||
changes = watchdog.poll(1)
|
||||
for change in changes:
|
||||
fileno = change[0]
|
||||
|
Loading…
x
Reference in New Issue
Block a user