MCPcopy
hub / github.com/glamp/bashplotlib / get_colour

Function get_colour

bashplotlib/utils/helpers.py:29–33  ·  view source on GitHub ↗

Get the escape code sequence for a colour

(colour, default="default")

Source from the content-addressed store, hash-verified

27
28
29def get_colour(colour, default="default"):
30 """
31 Get the escape code sequence for a colour
32 """
33 return bcolours.get(colour, bcolours[default])
34
35
36def printcolour(text, sameline=False, colour="default"):

Callers 1

printcolourFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected