@ -127,6 +127,10 @@ class BlinkenBase:
|
||||
return tf
|
||||
finally:
|
||||
s.tflock.release()
|
||||
|
||||
def callhook(s, msg):
|
||||
s.gettf().setcolor('white')
|
||||
s.__class__.__bases__[-1].callhook(s, msg)
|
||||
|
||||
def sleep(s, sleepsecs):
|
||||
s.gettf().setcolor('red')
|
||||
|
@ -175,3 +175,5 @@ class MachineUI(UIBase):
|
||||
def init_banner(s):
|
||||
s._printData('initbanner', offlineimap.version.banner)
|
||||
|
||||
def callhook(s, msg):
|
||||
s._printData('callhook', msg)
|
||||
|
@ -322,6 +322,12 @@ class UIBase:
|
||||
s.delThreadDebugLog(thread)
|
||||
s.unregisterthread(thread)
|
||||
|
||||
################################################## Hooks
|
||||
|
||||
def callhook(s, msg):
|
||||
if s.verbose >= 0:
|
||||
s._msg(msg)
|
||||
|
||||
################################################## Other
|
||||
|
||||
def sleep(s, sleepsecs):
|
||||
|
Reference in New Issue
Block a user