CmdReports: Color only used for tty

This commit is contained in:
Paul Beckingham 2015-11-15 14:20:17 -05:00
parent a863abf2b0
commit 9e2c6f8d47

View file

@ -90,12 +90,11 @@ int CmdReports::execute (std::string& output)
view.add (Column::factory ("string", STRING_CMD_REPORTS_REPORT));
view.add (Column::factory ("string", STRING_CMD_REPORTS_DESC));
Color label (context.config.get ("color.label"));
view.colorHeader (label);
// If an alternating row color is specified, notify the table.
if (context.color ())
{
Color label (context.config.get ("color.label"));
view.colorHeader (label);
Color alternate (context.config.get ("color.alternate"));
view.colorOdd (alternate);
view.intraColorOdd (alternate);