-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathConsoleColor.py
More file actions
executable file
·109 lines (101 loc) · 11.6 KB
/
Copy pathConsoleColor.py
File metadata and controls
executable file
·109 lines (101 loc) · 11.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#!/usr/bin/env python3
# -*-coding:utf-8 -*
# @remarks To enable ANSI colors on Windows, add following key in the registry :
# [HKEY_CURRENT_USER\Console] "VirtualTerminalLevel"=dword:00000001
import sys
class Program:
def main(self=None):
LOGO = [
U'████████████████████████████████████████████████████████████',
U'██████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░██████',
U'██████████████████████████████░░░░░░░░░░░░░░░░░░░░░░████░░████████',
U'██████████████████████████████░░░░░░░░░░░░░░░░░░░░░░████░░██████████',
U'██████████████████████████████░░░░░░░░░░░░░░░░░░░░░░████░░████████████',
U'██████████████████████████████░░░░░░░░░░░░░░░░░░░░░░████░░████████████',
U'██████████████████████████████░░░░░░░░░░░░░░░░░░░░░░████░░████████████',
U'███████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░█████████████',
U'██████████████████████████████████████████████████████████████████████',
U'██████████████████████████████████████████████████████████████████████',
U'██████████████████████████▀▄▄▄▄▀███████▀▄▄▄▄▀█████████████████████████',
U'███████████████████████████▀▀▀▀███████▀▀▀▀▀███████████████████████████',
U'██████████████████████████ ▀████ ▀█████████████████████████',
U'███████████ ▐ ▀▀ ▐ ██████████',
U'█████████ ▐ ███ ▌▐ ███ ▐ █████████',
U'█████████ ▐ █▄▄▌ ▌▐ ▐▄▄█ ▐ █████████',
U'█████████ ▐▄ ▀▀ ▄▀ ▀▄ ▀▀ ▄▀ █████████',
U'█████████ ▀▀▄▄▀ ▀▀▄▄▀ █████████',
U'█████████ █████████',
U'█████████ █▄ ▌ █████████',
U'█████████ ▌▀▀▄ ▄██ █████████',
U'█████████ ▐ ▀▀▄▄▄▄▄▄█▀ █▌ █████████',
U'█████████ ▐ ▄█ █████████',
U'█████████ █ ▄█ █████████',
U'█████████ ▀▄ █▀ █████████',
U'█████████ ▀▄▄▄▄██▀ █████████',
U'█████████ █████████',
U'█████████ █████████',
U'█████████ █████████',
U'█████████ █████████',
U'█████████ █████████',
U'██████████████████████████████████████████████████████████████████',
]
BACKGROUND_RESET = '\033[49m'
BACKGROUND_WHITE = '\033[47m'
FOREGROUND_DARK_GRAY = '\033[90m'
FOREGROUND_DARK_BLUE = '\033[94m'
FOREGROUND__RESET = '\033[39m'
index = 0
for line in LOGO:
print(' ' if index == 0 or index == len(LOGO) - 1 else ' ', end='')
print(FOREGROUND_DARK_BLUE, end='')
print(BACKGROUND_WHITE, end='')
print(line, end='')
print(FOREGROUND__RESET, end='')
print(BACKGROUND_RESET, end='')
print('')
index += 1
print(FOREGROUND_DARK_BLUE, end='')
print(U" Gammasoft ")
print(FOREGROUND_DARK_GRAY, end='')
print(U" More than thirty years of passion for high technology especially in development")
print(U" (c++, c#, objective-c, ...).", end='')
print(FOREGROUND__RESET)
if __name__ == '__main__':
Program.main()
# This code produces the following output with colors:
#
# ████████████████████████████████████████████████████████████
# ██████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░██████
# ██████████████████████████████░░░░░░░░░░░░░░░░░░░░░░████░░████████
# ██████████████████████████████░░░░░░░░░░░░░░░░░░░░░░████░░██████████
# ██████████████████████████████░░░░░░░░░░░░░░░░░░░░░░████░░████████████
# ██████████████████████████████░░░░░░░░░░░░░░░░░░░░░░████░░████████████
# ██████████████████████████████░░░░░░░░░░░░░░░░░░░░░░████░░████████████
# ███████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░█████████████
# ██████████████████████████████████████████████████████████████████████
# ██████████████████████████████████████████████████████████████████████
# ██████████████████████████▀▄▄▄▄▀███████▀▄▄▄▄▀█████████████████████████
# ███████████████████████████▀▀▀▀███████▀▀▀▀▀███████████████████████████
# ██████████████████████████ ▀████ ▀█████████████████████████
# ███████████ ▐ ▀▀ ▐ ██████████
# █████████ ▐ ███ ▌▐ ███ ▐ █████████
# █████████ ▐ █▄▄▌ ▌▐ ▐▄▄█ ▐ █████████
# █████████ ▐▄ ▀▀ ▄▀ ▀▄ ▀▀ ▄▀ █████████
# █████████ ▀▀▄▄▀ ▀▀▄▄▀ █████████
# █████████ █████████
# █████████ █▄ ▌ █████████
# █████████ ▌▀▀▄ ▄██ █████████
# █████████ ▐ ▀▀▄▄▄▄▄▄█▀ █▌ █████████
# █████████ ▐ ▄█ █████████
# █████████ █ ▄█ █████████
# █████████ ▀▄ █▀ █████████
# █████████ ▀▄▄▄▄██▀ █████████
# █████████ █████████
# █████████ █████████
# █████████ █████████
# █████████ █████████
# █████████ █████████
# ██████████████████████████████████████████████████████████████████
# Gammasoft
# More than thirty years of passion for high technology especially in development
# (c++, c#, objective-c, ...).