add colors to optional features report
authorAlexander Afanasyev <alexander.afanasyev@ucla.edu>
Wed, 05 Dec 2012 20:35:21 -0800
changeset 9168 2ff57d50b827
parent 9167 495189af3137
child 9169 f8bff624db3c
add colors to optional features report
wscript
--- a/wscript	Wed Dec 05 14:54:14 2012 -0500
+++ b/wscript	Wed Dec 05 20:35:21 2012 -0800
@@ -536,9 +536,11 @@
     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):