예제 #1
0
def color(c, s):
    return ansi.set_foreground(c) + s + ansi.set_foreground(ansi.black)
예제 #2
0
def color(c, s):
    return ansi.set_foreground(c) + s + ansi.set_foreground(ansi.default_color)
예제 #3
0
def set_color((bg, fg)):
    sys.stdout.write(ansi.set_background(bg))
    sys.stdout.write(ansi.set_foreground(fg))