Patchwork [bitbake-devel,4/7] knotty.py: update footer on dynamic log level change

login
register
mail settings
Submitter Mark Hatle
Date May 29, 2013, 3:59 a.m.
Message ID <1369799955-1488-4-git-send-email-mark.hatle@windriver.com>
Download mbox | patch
Permalink /patch/50651/
State New
Headers show

Comments

Mark Hatle - May 29, 2013, 3:59 a.m.
From: Jason Wessel <jason.wessel@windriver.com>

This patch adds a call to update the task list after changing log
modes dynamically such that you can immediately see the remaining
tasks.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
---
 lib/bb/ui/knotty.py | 6 ++++++
 1 file changed, 6 insertions(+)

Patch

diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py
index 4f59e96..5020815 100644
--- a/lib/bb/ui/knotty.py
+++ b/lib/bb/ui/knotty.py
@@ -181,6 +181,10 @@  class TerminalFilter(object):
             sys.stdout.write(self.curses.tparm(self.ed))
         self.footer_present = False
 
+    def updateFooterForce(self):
+        self.footer_present = False
+        self.updateFooter()
+
     def updateFooter(self):
         if not self.cuu:
             return
@@ -370,6 +374,8 @@  def main(server, eventHandler, params, tf = TerminalFilter):
             if stdin_mgr.poll():
                 keyinput = sys.stdin.read(1)
                 rtloglevel.setLevel(keyinput, True)
+                termfilter.updateFooterForce()
+
             # Always try printing any accumulated log files first
             rtloglevel.displayLogs()
             if event is None: