ui/knotty: Add a footer to the build output for interactive terminals as knotty2 UI
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 26 Nov 2011 13:37:52 +0000 (13:37 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 29 Mar 2012 18:44:01 +0000 (19:44 +0100)
commit88d9031ad529e67cd7ec1fe28a1023a2008c1977
tree187f4294f6caa3b61fdd9fef13a06f3d380f05d2
parent69ffba2d297dcb8ee4fead34f49333dce8b2c098
ui/knotty: Add a footer to the build output for interactive terminals as knotty2 UI

On terminals which support it, add summary information to the end of the
build output about the number of tasks currently running and how many tasks
we've run so far.

This provides a summary at a glace of what the current state of the build is
and what the build is currently doing which is lacking in the current UI.

Also disable echo of characters on stdin since this corrupts the disable,
particularly Crtl+C.

The "waiting for X tasks" code can be merged into this code too since
that is only useful on interactive terminals and this improves the
readability of that output too.

Improvements since v0:

* The tasks are ordered in execution order.
* The display is only updated when the list of tasks changes or there
  is output above the footer.
* Running task x oy y and package messages are supressed from the console

This UI can be accessed with "bitbake -u knotty2".

(From Poky rev: e38b4569648f2916c4370871c79e6a6090eb8bc1)

(Bitbake rev: 156189c799d2bb1f69bdaa04b5cd718fe7881425)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/bin/bitbake
bitbake/lib/bb/ui/knotty.py
bitbake/lib/bb/ui/knotty2.py [new file with mode: 0644]