CmdTags: Color only used for tty

This commit is contained in:
Paul Beckingham 2015-11-15 14:22:18 -05:00
parent 9442df8342
commit c4f7e1a869

View file

@ -96,10 +96,15 @@ int CmdTags::execute (std::string& output)
view.add (Column::factory ("string", STRING_COLUMN_LABEL_TAG));
view.add (Column::factory ("string.right", STRING_COLUMN_LABEL_COUNT));
Color label (context.config.get ("color.label"));
view.colorHeader (label);
Color bold;
if (context.color ())
{
bold = Color ("bold");
Color label (context.config.get ("color.label"));
view.colorHeader (label);
}
Color bold ("bold");
bool special = false;
for (auto& i : unique)
{