@@ -25,7 +25,7 @@ def getshow_config(mode: int=1) -> dict or None:
25
25
use_print_2 = print
26
26
else :
27
27
use_print_1 = print
28
- use_print_2 = print
28
+ use_print_2 = lambda * args , ** kwargs : None
29
29
30
30
id_plus = 0
31
31
# 32样式字典
@@ -34,7 +34,7 @@ def getshow_config(mode: int=1) -> dict or None:
34
34
""" 打印所有颜色详细信息 """
35
35
# 打印默认样式
36
36
for style in COLOR32 .STYLE :
37
- use_print_1 ('ID {6:>4} style {0} text_color {1} background_color {2}: \033 [{3};{4};{5}m CHERRY \033 [0;0m' .format (
37
+ use_print_1 ('ID {6:>4} style {0} text_color {1} background_color {2}: \\ 033[{3};{4};{5}m \033 [{3};{4};{5}m CHERRY \033 [0;0m \ \ 033[0;0m' .format (
38
38
COLOR32 .STYLE [style ], COLOR32 .TEXT_COLOR ["01" ], COLOR32 .BACKGROUND_COLOR ["01" ],
39
39
style , "01" , "01" ,
40
40
id_plus ,
@@ -49,7 +49,7 @@ def getshow_config(mode: int=1) -> dict or None:
49
49
background_color = background_color_list [1 :9 ][index ]
50
50
for text_color in COLOR32 .TEXT_COLOR :
51
51
for style in COLOR32 .STYLE :
52
- use_print_1 ('ID {6:>4} style {0} text_color {1} background_color {2}: \033 [{3};{4};{5}m CHERRY \033 [0;0m' .format (
52
+ use_print_1 ('ID {6:>4} style {0} text_color {1} background_color {2}: \\ 033[{3};{4};{5}m \033 [{3};{4};{5}m CHERRY \033 [0;0m \ \ 033[0;0m' .format (
53
53
COLOR32 .STYLE [style ], COLOR32 .TEXT_COLOR [text_color ], COLOR32 .BACKGROUND_COLOR [background_color ],
54
54
style , text_color , background_color ,
55
55
id_plus ,
@@ -60,7 +60,7 @@ def getshow_config(mode: int=1) -> dict or None:
60
60
background_color = background_color_list [9 :][index ]
61
61
for text_color in COLOR32 .TEXT_COLOR :
62
62
for style in COLOR32 .STYLE :
63
- use_print_1 ('ID {6:>4} style {0} text_color {1} background_color {2}: \033 [{3};{4};{5}m CHERRY \033 [0;0m' .format (
63
+ use_print_1 ('ID {6:>4} style {0} text_color {1} background_color {2}: \\ 033[{3};{4};{5}m \033 [{3};{4};{5}m CHERRY \033 [0;0m \ \ 033[0;0m' .format (
64
64
COLOR32 .STYLE [style ], COLOR32 .TEXT_COLOR [text_color ], COLOR32 .BACKGROUND_COLOR [background_color ],
65
65
style , text_color , background_color ,
66
66
id_plus ,
@@ -71,7 +71,7 @@ def getshow_config(mode: int=1) -> dict or None:
71
71
text_color = text_color_list [1 :9 ][index ]
72
72
for text_color in COLOR32 .TEXT_COLOR :
73
73
for style in COLOR32 .STYLE :
74
- use_print_1 ('ID {6:>4} style {0} text_color {1} background_color {2}: \033 [{3};{4};{5}m CHERRY \033 [0;0m' .format (
74
+ use_print_1 ('ID {6:>4} style {0} text_color {1} background_color {2}: \\ 033[{3};{4};{5}m \033 [{3};{4};{5}m CHERRY \033 [0;0m \ \ 033[0;0m' .format (
75
75
COLOR32 .STYLE [style ], COLOR32 .TEXT_COLOR [text_color ], COLOR32 .BACKGROUND_COLOR [background_color ],
76
76
style , text_color , background_color ,
77
77
id_plus ,
@@ -82,7 +82,7 @@ def getshow_config(mode: int=1) -> dict or None:
82
82
text_color = text_color_list [9 :][index ]
83
83
for text_color in COLOR32 .TEXT_COLOR :
84
84
for style in COLOR32 .STYLE :
85
- use_print_1 ('ID {6:>4} style {0} text_color {1} background_color {2}: \033 [{3};{4};{5}m CHERRY \033 [0;0m' .format (
85
+ use_print_1 ('ID {6:>4} style {0} text_color {1} background_color {2}: \\ 033[{3};{4};{5}m \033 [{3};{4};{5}m CHERRY \033 [0;0m \ \ 033[0;0m' .format (
86
86
COLOR32 .STYLE [style ], COLOR32 .TEXT_COLOR [text_color ], COLOR32 .BACKGROUND_COLOR [background_color ],
87
87
style , text_color , background_color ,
88
88
id_plus ,
@@ -93,15 +93,15 @@ def getshow_config(mode: int=1) -> dict or None:
93
93
# 按颜色分类打印样式 256
94
94
for fgbg in COLOR256 .FGBG :
95
95
for color_code in COLOR256 .COLOR_CODE :
96
- use_print_1 ('ID {0:>4} FGBG {1} Color Code {2:>3}: \033 [{1};5;{2}m CHERRY \033 [0;0m' .format (
96
+ use_print_1 ('ID {0:>4} FGBG {1} Color Code {2:>3}: \\ 033[{1};5;{2}m \033 [{1};5;{2}m CHERRY \033 [0;0m \ \ 033[0;0m' .format (
97
97
id_plus , fgbg , color_code ,
98
98
))
99
99
STYLE_ID_DICT [id_plus ] = "\033 [{0};5;{1}m" .format (fgbg , color_code )
100
100
id_plus += 1
101
101
102
102
for color_code_48 in COLOR256 .COLOR_CODE :
103
103
for color_code_38 in COLOR256 .COLOR_CODE :
104
- # use_print_1("\033[48;5;{0}m\033[38;5;{1}m CHERRY \033[0;0m".format(color_code_48, color_code_38))
104
+ # use_print_1("\033[48;5;{0}m\033[38;5;{1}m CHERRY \033[0;0m \\033[0;0m ".format(color_code_48, color_code_38))
105
105
STYLE_ID_DICT [id_plus ] = "\033 [48;5;{0}m\033 [38;5;{1}m" .format (color_code_48 , color_code_38 )
106
106
id_plus += 1
107
107
0 commit comments