summaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui/urls.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-04-07 09:52:11 +1200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-07 00:51:12 +0100
commit04a023c8fdea1e1812fcdcaf00345aab59f9abe1 (patch)
treefebbd47e72e8f1a71a0b03cfe250f7314b490dd8 /lib/toaster/toastergui/urls.py
parent20db6b6553c80e18afc4f43dc2495435f7477822 (diff)
downloadbitbake-04a023c8fdea1e1812fcdcaf00345aab59f9abe1.tar.gz
bitbake-diffsigs: colourise output
If the output is a TTY, add colour to the output in order to make it easier to read. At the moment this is fairly basic, just add colour to the "titles" of each change and to the diff output. I tried to introduce this without changing the code too much - rather than moving everything over to the new python formatting style, I've introduced a color_format() function which takes care of the colour formatting, either accepting additional format arguments or alternatively leaving the caller to use the old-style formatting (%) to insert values. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/toaster/toastergui/urls.py')
0 files changed, 0 insertions, 0 deletions