mirror of
https://github.com/kennethreitz/clint.git
synced 2026-06-05 23:00:18 +00:00
reset ALL the colors
This commit is contained in:
+8
-8
@@ -7,25 +7,25 @@ Simple colorama wrapper
|
||||
colorama.init(autoreset=True)
|
||||
|
||||
def black(string):
|
||||
return '%s%s' % (colorama.Fore.BLACK, string)
|
||||
return '%s%s%s' % (colorama.Fore.BLACK, string, colorama.Fore.RESET)
|
||||
|
||||
def red(string):
|
||||
return '%s%s' % (colorama.Fore.RED, string)
|
||||
return '%s%s%s' % (colorama.Fore.RED, string, colorama.Fore.RESET)
|
||||
|
||||
def green(string):
|
||||
return '%s%s' % (colorama.Fore.GREEN, string)
|
||||
return '%s%s%s' % (colorama.Fore.GREEN, string, colorama.Fore.RESET)
|
||||
|
||||
def yellow(string):
|
||||
return '%s%s' % (colorama.Fore.YELLOW, string)
|
||||
return '%s%s%s' % (colorama.Fore.YELLOW, string, colorama.Fore.RESET)
|
||||
|
||||
def blue(string):
|
||||
return '%s%s' % (colorama.Fore.BLUE, string)
|
||||
return '%s%s%s' % (colorama.Fore.BLUE, string, colorama.Fore.RESET)
|
||||
|
||||
def magenta(string):
|
||||
return '%s%s' % (colorama.Fore.MAGENTA, string)
|
||||
return '%s%s%s' % (colorama.Fore.MAGENTA, string, colorama.Fore.RESET)
|
||||
|
||||
def cyan(string):
|
||||
return '%s%s' % (colorama.Fore.CYAN, string)
|
||||
return '%s%s%s' % (colorama.Fore.CYAN, string, colorama.Fore.RESET)
|
||||
|
||||
def white(string):
|
||||
return '%s%s' % (colorama.Fore.WHITE, string)
|
||||
return '%s%s%s' % (colorama.Fore.WHITE, string, colorama.Fore.RESET)
|
||||
|
||||
Reference in New Issue
Block a user