]> git.itanic.dy.fi Git - emerge-timer/commitdiff
Give text some color
authorEsko Kokkonen <esko.kokkonen@gmail.com>
Sat, 1 Oct 2011 11:21:47 +0000 (14:21 +0300)
committerEsko Kokkonen <esko.kokkonen@gmail.com>
Sat, 1 Oct 2011 11:21:47 +0000 (14:21 +0300)
The "any time now" message was missing its color.

emerge-timer.py

index 170e52e02f62784cabf30086d4d9d7bac372592f..739f8f4c4faa3c31c0707c5370efc42e5584ab4f 100755 (executable)
@@ -80,12 +80,12 @@ class package:
 
         finish_time = self.average_time() - self.emerge_time
 
-        print("\n\t time to finish: "),
+        print("\n\t time to finish:"),
 
         if finish_time > 0:
             print(give_time(finish_time))
         else:
-            print("any time now")
+            print(green_start + "any time now" + color_stop)
         print