UI şimdilik kendi çıktılarını renkli versinki build işlemindeki çıktılar ile karışmasın, ilerde tipe göre ayırırız

This commit is contained in:
S.Çağlar Onur
2005-06-15 13:33:00 +00:00
parent ef824ebc5b
commit ffdc4f7e86
+2 -1
View File
@@ -1,6 +1,7 @@
# generic user interface
import sys
from output import *
# put the interface directly in the module
# since the UI is _unique_
@@ -15,7 +16,7 @@ def info(msg):
# default UI implementation
class CLI:
def info(self, msg):
sys.stdout.write(msg)
sys.stdout.write( bold( red (msg)))
sys.stdout.flush()
# default UI is CLI