1
0
Fabian Peter Hammerle 9 жил өмнө
parent
commit
31347eca9c
1 өөрчлөгдсөн 14 нэмэгдсэн , 0 устгасан
  1. 14 0
      ioex/shell.py

+ 14 - 0
ioex/shell.py

@@ -0,0 +1,14 @@
+# http://misc.flogisoft.com/bash/tip_colors_and_formatting
+
+class Formatting:
+    bold = '\033[1m'
+    dim = '\033[2m'
+    reset_bold = '\033[21m'
+    reset_dim = '\033[22m'
+    reset = ''.join([reset_bold, reset_dim])
+
+class TextColor:
+    default = '\033[39m'
+    red = '\033[31m'
+    green = '\033[32m'
+    blue = '\033[34m'