]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
patman: Use ANSI colours only when outputting to a terminal
authorSimon Glass <sjg@chromium.org>
Sat, 15 Dec 2012 10:42:01 +0000 (10:42 +0000)
committerSimon Glass <sjg@chromium.org>
Thu, 4 Apr 2013 21:04:32 +0000 (14:04 -0700)
commitbbd01435b9f3f1f60355b95f157170ec52c6353d
treef6f5bd098c6658aafda60b0072f485757d3ab727
parentc8142633e169665b246352918df5b76fd243bb71
patman: Use ANSI colours only when outputting to a terminal

It is easy to detect whether or not the process is connected to a terminal,
or piped to a file. Disable ANSI colours automatically when output is
not to a terminal.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/terminal.py