reset colors after warning

If a warning is shown, and you happen to have no color setting in your (bash) prompt, the \033[37m setting, stays active. With the message hardly readable (light grey on my default light yellow background), that means the prompt is barely visible and you need to do `tput reset`.
Would probably be better if the background color was set as well in case you have dark on light theme by default in your terminal.

Signed-off-by: Anthon van der Neut <a.van.der.neut@ruamel.eu>
This commit is contained in:
Anthon van der Neut 2016-02-16 14:46:47 +01:00 committed by Daniel Nephin
parent f0a8c65b05
commit f59fef09a6
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ def parse_opts(args):
def main(args):
logging.basicConfig(format='\033[33m%(levelname)s:\033[37m %(message)s\n')
logging.basicConfig(format='\033[33m%(levelname)s:\033[37m %(message)s\033[0m\n')
opts = parse_opts(args)