diff --git a/cccli/command/list.py b/cccli/command/list.py index de2636b3f8efed903e32289d05e292c6f366d6f5..3464b2bb4ead9e9455199355496fca9e8d5ef8bf 100644 --- a/cccli/command/list.py +++ b/cccli/command/list.py @@ -53,12 +53,12 @@ class Command_list(OptionCommand): '''Trivial listing of tag''' for o in objs: id = self.td("id", o.pop("id")) - tags = " ".join([ "%s%s:%s%s"%(color["green"], + tags = " ".join([ "%s%s:%s%s"%(color["reset"], t, self.tc(t), self.td(t, v)) for (t,v) in o.items() ]) - self.printer.out("%sid:%s%s %s%s"%(color["green"], color["lblue"], id, tags, color["reset"])) + self.printer.out("%sid:%s%s %s%s"%(color["reset"], color["lblue"], id, tags, color["reset"])) def _list_align(self, objs): '''Listing line aligned''' @@ -72,12 +72,12 @@ class Command_list(OptionCommand): # dislay each object by line for o in objs: # show id tag - line = "%sid:%s%s"%(color["green"], + line = "%sid:%s%s"%(color["reset"], self.tc("id"), self.td("id", o.pop("id")).ljust(idsize + 2)) # show others tags for tagname in sorted(tags.keys()): - line += "%s%s:%s%s"%(color["green"], + line += "%s%s:%s%s"%(color["reset"], tagname, self.tc(tagname), self.td(tagname, o.get(tagname, "")).ljust(tags[tagname] + 1)) @@ -93,7 +93,7 @@ class Command_list(OptionCommand): # extract id size idsize = tags.pop("id") # print id title - self.printer.out(color["green"], nl="") + self.printer.out(color["reset"], nl="") self.printer.out("id".ljust(idsize+1), nl=" ") # print others titles for t,v in tags.items(): diff --git a/cccli/command/tag.py b/cccli/command/tag.py index d2700e8db7256b90c0654f0050ed3e12d689338d..fae9c40e58d6fc008fb400fbc457a176ad66a4d8 100644 --- a/cccli/command/tag.py +++ b/cccli/command/tag.py @@ -52,12 +52,12 @@ class Command_tags(OptionCommand): # display answer for o in objs: id = self.td("id", o.pop("id")) - tags = " ".join([ "%s%s:%s%s"%(color["green"], + tags = " ".join([ "%s%s:%s%s"%(color["reset"], t, self.tc(t), self.td(t, v)) for (t,v) in o.items() ]) - self.printer.out("%sid:%s%s %s%s"%(color["green"], color["lblue"], id, tags, color["reset"])) + self.printer.out("%sid:%s%s %s%s"%(color["reset"], color["lblue"], id, tags, color["reset"])) class Command_addtag(Command): diff --git a/cccli/tagdisplay.py b/cccli/tagdisplay.py index 3165b0cfc7f8b3a596ad68e710794f40ce661437..3716268b711892469352ee3391556beb153c52ad 100644 --- a/cccli/tagdisplay.py +++ b/cccli/tagdisplay.py @@ -52,7 +52,7 @@ class TagDisplay(object): '''Return the current tag color''' if tagname in self.tagcolor and self.tagcolor[tagname] in color: return color[self.tagcolor[tagname]] - return color["reset"] + return color["yellow"] def resolve(self, tagname, tagvalue): '''Transform a tagvalue respecting custom display settings'''