MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / set_colors

Function set_colors

seleniumbase/console_scripts/sb_mkrec.py:65–79  ·  view source on GitHub ↗
(use_colors)

Source from the content-addressed store, hash-verified

63
64
65def set_colors(use_colors):
66 c0 = ""
67 c1 = ""
68 c2 = ""
69 c5 = ""
70 c7 = ""
71 cr = ""
72 if use_colors:
73 c0 = colorama.Fore.BLUE + colorama.Back.LIGHTCYAN_EX
74 c1 = colorama.Fore.RED + colorama.Back.LIGHTYELLOW_EX
75 c2 = colorama.Fore.LIGHTRED_EX + colorama.Back.LIGHTYELLOW_EX
76 c5 = colorama.Fore.RED + colorama.Back.LIGHTYELLOW_EX
77 c7 = colorama.Fore.BLACK + colorama.Back.MAGENTA
78 cr = colorama.Style.RESET_ALL
79 return c0, c1, c2, c5, c7, cr
80
81
82def main():

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…