Skip to content

Instantly share code, notes, and snippets.

@zeffii
Created June 17, 2012 10:16
Show Gist options
  • Save zeffii/2944123 to your computer and use it in GitHub Desktop.
Save zeffii/2944123 to your computer and use it in GitHub Desktop.
colour printing in terminal.py
# http://www.linuxhomenetworking.com/forums/showthread.php/1095-Linux-console-Colors-And-Other-Trick-s
def printWarning(input):
print("\033[31m%s\033[0m" % input)
def funkyprint(input):
print("\033[36m%s\033[0m" % input)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment