From 3cea4a01fe467d6939049d37f8b1033c1ea73c51 Mon Sep 17 00:00:00 2001 From: Seblu Date: Sat, 8 Jan 2011 04:33:45 +0100 Subject: [PATCH] Debug printing in grey --- cccli/printer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cccli/printer.py b/cccli/printer.py index ae2edca..f4690bf 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''' -- GitLab