commit | 4c73c0882b34d0383ff417e2d66c127f848cfe06 | [log] [tgz] |
---|---|---|
author | Andrew Donnellan <andrew.donnellan@au1.ibm.com> | Tue Jul 05 17:47:37 2016 +1000 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Aug 18 18:12:07 2016 +0200 |
tree | 112cecea165537e4112c428647f20f6e4f8c2068 | |
parent | 694d0d0bb2030d2e36df73e2d23d5770511dbc8d [diff] |
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>