summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-02 21:48:29 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-06 22:23:37 +0100
commit5d706c7cd6ee8d83b67ff18312d4c8119bea8878 (patch)
tree2c5f37ed427f11f922b23b63a468ab1d33ee4106
parent756cc69ebf8bfe8455d0c90f288dd51be2499773 (diff)
downloadbitbake-5d706c7cd6ee8d83b67ff18312d4c8119bea8878.tar.gz
knotty: Reduce refresh of footer
When displaying larger number of events the client can get caught up in displaying the footer, then immediately overwriting it. To avoid this, wait for pauses in the event stream before displaying the footer to give a slightly more friendly feel to the UI. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/ui/knotty.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py
index 1692e3295..45200460b 100644
--- a/lib/bb/ui/knotty.py
+++ b/lib/bb/ui/knotty.py
@@ -306,8 +306,10 @@ def main(server, eventHandler, params, tf = TerminalFilter):
while True:
try:
- termfilter.updateFooter()
- event = eventHandler.waitEvent(0.25)
+ event = eventHandler.waitEvent(0)
+ if event is None:
+ termfilter.updateFooter()
+ event = eventHandler.waitEvent(0.25)
if event is None:
if main.shutdown > 1:
break