MCPcopy Create free account
hub / github.com/CreditTone/hooker / withColor

Function withColor

hooker.py:212–213  ·  view source on GitHub ↗
(string, fg, bg=49)

Source from the content-addressed store, hash-verified

210
211
212def withColor(string, fg, bg=49):
213 print("\33[0m\33[%d;%dm%s\33[0m" % (fg, bg, string))
214#front color
215Red = 1
216Green = 2

Callers 7

redFunction · 0.85
greenFunction · 0.85
yellowFunction · 0.85
blueFunction · 0.85
magentaFunction · 0.85
cyanFunction · 0.85
whiteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected