Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
__esc = "\033[%dm"
mod = {
  "u"         :__esc%4, "/u"        :__esc%24,
  "slowblink" :__esc%5, "fastblink" :__esc%6,
  "black"     :__esc%30,"red"       :__esc%31,
  "green"     :__esc%32,"yellow"    :__esc%33,
  "blue"      :__esc%34,"magenta"   :__esc%35,
  "cyan"      :__esc%36,"white"     :__esc%37,
  "colorend"  :__esc%39,"/blink"    :__esc%25
}
clrstart  = mod["fastblink"]
modend = mod["/blink"]
print ("CS2 is " + clrstart + "neat" + modend + "!!!")
for i in range(0, 256):
  print("%i %c[%dm" % (i, 27, i))
Python 3.6.1 (default, Dec 2015, 13:05:11) [GCC 4.8.2] on linux