[bitbake-devel] [PATCH v2] bitbake: Colorize knotty interactive console output

Seth Bollinger seth.boll at gmail.com
Tue Nov 13 14:45:35 UTC 2012


I'm not sure how best to resolve this.  Would you like me to add some code
to try and detect background color?  This seems like it might be more
complex than it's worth...

Or would it be better to have a selectable light background color set?  If
you think light background is more common (I dislike staring at large
blocks of white :)) it could default to the light color set.

Thanks!

Seth


On Tue, Nov 13, 2012 at 8:23 AM, Richard Purdie <
richard.purdie at linuxfoundation.org> wrote:

> On Sun, 2012-11-11 at 09:17 -0600, Seth Bollinger wrote:
> > Add bold color output to log level name and standard color output to
> > log msg
> > when bitbake is run from an iteractive console.  Color output is only
> > enabled
> > if the terminal supports color.
> >
> > Signed-off-by: Seth Bollinger <seth.boll at gmail.com>
> > ---
> >  bitbake/lib/bb/msg.py       |   40
> > ++++++++++++++++++++++++++++++++++++++++
> >  bitbake/lib/bb/ui/knotty.py |    6 +++++-
> >  2 files changed, 45 insertions(+), 1 deletions(-)
>
> I love the idea. I tried testing it and realised that it doesn't work in
> my black text on a white background terminals though, the result of the
> patch was unreadable :(
>
> Cheers,
>
> Richard
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20121113/ba247fef/attachment-0001.html>


More information about the bitbake-devel mailing list