From patchwork Mon Sep 17 22:43:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel, 5/8] knotty.py: update footer on dynamic log level change Date: Mon, 17 Sep 2012 22:43:35 -0000 From: Jason Wessel X-Patchwork-Id: 36671 Message-Id: <1347921818-60562-6-git-send-email-jason.wessel@windriver.com> To: This patch adds a call to update the task list after changing log modes dynamically such that you can immediately see the remaining tasks. (LOCAL REV: NOT UPSTREAM) Signed-off-by: Jason Wessel --- lib/bb/ui/knotty.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py index f7a770b..5882c24 100644 --- a/lib/bb/ui/knotty.py +++ b/lib/bb/ui/knotty.py @@ -179,6 +179,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 @@ -347,6 +351,8 @@ def main(server, eventHandler, 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: