-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmColorsAndChars.py
82 lines (63 loc) · 3.94 KB
/
mColorsAndChars.py
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
# COMMONLY USED COLOR NAMES
COLOR_DIM = 0x0F08; # Dark gray
COLOR_NORMAL = 0x0F07; # Light gray
COLOR_HILITE = 0x0F0F; # White
COLOR_INFO = 0x0F0B; # Bright cyan
COLOR_LIST = 0x0F0B; # Bright cyan
COLOR_BUSY = 0x0F03; # Cyan
COLOR_OK = 0x0F02; # Green
COLOR_WARNING = 0x0F06; # Brown
COLOR_ERROR = 0x0F04; # Red
COLOR_SELECT_YES = 0x0F0B; # Bright cyan
COLOR_SELECT_MAYBE = 0x0F03; # Dark cyan
COLOR_SELECT_NO = 0x0F03; # Dark cyan
COLOR_INPUT = 0x0F0B; #
COLOR_OUTPUT = 0x0F07; #
COLOR_ADD = 0x0F0A; # Bright green
COLOR_MODIFY = 0x0F0B; # Bright cyan
COLOR_REMOVE = 0x0F0C; # Bright red
COLOR_PROGRESS_BAR = 0xFF19; # Bright blue on Dark blue
COLOR_PROGRESS_BAR_HILITE = 0xFF91; # Dark blue on bright blue
COLOR_PROGRESS_BAR_SUBPROGRESS = 0xFFB1; # Dark blue on bright cyan
CONSOLE_UNDERLINE = 0x10000;
# COMMONLY USED CHARS
CHAR_INFO = "→";
CHAR_LIST = "•";
CHAR_BUSY = "»";
CHAR_OK = "√";
CHAR_WARNING = "▲";
CHAR_ERROR = "×";
CHAR_SELECT_YES = "●";
CHAR_SELECT_MAYBE = "•";
CHAR_SELECT_NO = "·";
CHAR_INPUT = "◄";
CHAR_OUTPUT = "►";
CHAR_ADD = "+";
CHAR_MODIFY = "±";
CHAR_REMOVE = "-";
CHAR_IGNORE = "·";
# DEFAULTS
from foConsoleLoader import foConsoleLoader;
oConsole = foConsoleLoader();
oConsole.uDefaultColor = COLOR_NORMAL;
oConsole.uDefaultBarColor = COLOR_PROGRESS_BAR;
oConsole.uDefaultProgressColor = COLOR_PROGRESS_BAR_HILITE;
oConsole.uDefaultSubProgressColor = COLOR_PROGRESS_BAR_SUBPROGRESS;
# APPLICATION SPECIFIC COLOR NAMES
FILE_NAME = 0xFF0B; # The file name
FILE_LINENO = 0xFF09; # The line numbers in the file after the file name.
FILE_BOX = 0xFFB0; # The content header
FILE_BOX_NAME = 0xFFB0; # The file name in the content header
FILE_BOX_LINENO = 0xFFB9; # The line number of the first match in the content header
FILE_CUT_LINENO_COLOMN = 0xFF08;
FILE_CUT_NAME = 0xFF08; # The file name repeated when the content is cut into pieces
FILE_CUT_LINENO = 0xFF09; # The next match line number when the content is cut into pieces
FILE_CUT_PAD = 0xFF08; # The padding after the file name and line number when the content is cut into pieces
LINENO_COLOMN = 0xFF08; # The line number before unmatched file content lines
LINENO_COLOMN_MATCH = 0xFF19; # The line number before matched file content lines
LINENO_CONTENT_SEPARATOR = 0xFF08; # The separator between the line number and the file content line
LINENO_CONTENT_SEPARATOR_MATCH = 0xFF18; # The separator between the line number and the file content line
CONTENT = 0xFF07; # The unmatched file content lines
CONTENT_MATCH = 0xFF1B; # The matched file content lines
CONTENT_EOL = 0xFF08; # End of file content line marker
CHAR_EOL = "←↓";