From 071376c1b7ec54934c8acf2ba00b277674ed9732 Mon Sep 17 00:00:00 2001 From: Alexander Afanasyev Date: Wed, 5 Dec 2012 20:35:21 -0800 Subject: [PATCH] add colors to optional features report --- wscript | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index c75e11ed8..8a839e1eb 100644 --- a/wscript +++ b/wscript @@ -536,9 +536,11 @@ def configure(conf): for (name, caption, was_enabled, reason_not_enabled) in conf.env['NS3_OPTIONAL_FEATURES']: if was_enabled: status = 'enabled' + color = 'GREEN' else: status = 'not enabled (%s)' % reason_not_enabled - print "%-30s: %s" % (caption, status) + color = 'RED' + print "%-30s: %s%s%s" % (caption, Logs.colors_lst[color], status, Logs.colors_lst['NORMAL']) class SuidBuild_task(Task.TaskBase):