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:
+2
-1
@@ -1,6 +1,7 @@
|
|||||||
# generic user interface
|
# generic user interface
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
from output import *
|
||||||
|
|
||||||
# put the interface directly in the module
|
# put the interface directly in the module
|
||||||
# since the UI is _unique_
|
# since the UI is _unique_
|
||||||
@@ -15,7 +16,7 @@ def info(msg):
|
|||||||
# default UI implementation
|
# default UI implementation
|
||||||
class CLI:
|
class CLI:
|
||||||
def info(self, msg):
|
def info(self, msg):
|
||||||
sys.stdout.write(msg)
|
sys.stdout.write( bold( red (msg)))
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
||||||
# default UI is CLI
|
# default UI is CLI
|
||||||
|
|||||||
Reference in New Issue
Block a user