checkkconfigsymbols.py: add --no-color option, don't print color to non-TTY
authorAndrew Donnellan <andrew.donnellan@au1.ibm.com>
Tue, 5 Jul 2016 07:47:37 +0000 (17:47 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Aug 2016 16:12:07 +0000 (18:12 +0200)
commit4c73c0882b34d0383ff417e2d66c127f848cfe06
tree112cecea165537e4112c428647f20f6e4f8c2068
parent694d0d0bb2030d2e36df73e2d23d5770511dbc8d
checkkconfigsymbols.py: add --no-color option, don't print color to non-TTY

Only print the ANSI colour escape codes if stdout is a TTY. Useful if
redirecting output to a file or piping to another script.

Also add a new option, --no-color, if the user wants to disable colour
output for whatever reason.

Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Acked-by: Valentin Rothberg <valentinrothberg@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/checkkconfigsymbols.py