CmdContext: Color only used for tty
This commit is contained in:
@@ -227,8 +227,11 @@ void CmdContext::listContexts (std::stringstream& out)
|
|||||||
view.add (Column::factory ("string", "Definition"));
|
view.add (Column::factory ("string", "Definition"));
|
||||||
view.add (Column::factory ("string", "Active"));
|
view.add (Column::factory ("string", "Active"));
|
||||||
|
|
||||||
Color label (context.config.get ("color.label"));
|
if (context.color ())
|
||||||
view.colorHeader (label);
|
{
|
||||||
|
Color label (context.config.get ("color.label"));
|
||||||
|
view.colorHeader (label);
|
||||||
|
}
|
||||||
|
|
||||||
std::string activeContext = context.config.get ("context");
|
std::string activeContext = context.config.get ("context");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user