diff --git a/cccli/printer.py b/cccli/printer.py index ae2edcaf4d261cd1a427b17eec10bcd39693bc9d..f4690bf08b50ff82913675f2c2f21c7b57389ca4 100644 --- a/cccli/printer.py +++ b/cccli/printer.py @@ -16,6 +16,7 @@ from cccli.exception import * color = { # regular + "black": "\033[0;30m", "red": "\033[0;31m", "green": "\033[0;32m", "yellow": "\033[0;33m", @@ -24,6 +25,7 @@ color = { "cyan": "\033[0;36m", "white": "\033[0;37m", # lighted + "lgrey": "\033[1;30m", "lred": "\033[1;31m", "lgreen": "\033[1;32m", "lyellow": "\033[1;33m", @@ -95,7 +97,7 @@ class Printer(object): def debug(self, message, fd=sys.stderr, nl=os.linesep): if cccli.debug: - self.out(message, fd, nl) + self.out("%s%s%s"%(color["lgrey"],message,color["reset"]), fd, nl) def interactive(self, message, fd=sys.stderr, nl=os.linesep): '''Print only in interactive mode'''