From f913d4fc6392bc11c42a9b3b0f6d17c459268bb9 Mon Sep 17 00:00:00 2001 From: neingeist Date: Sat, 16 Aug 2014 23:26:48 +0200 Subject: [PATCH] add colorama example --- colorama_test.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 colorama_test.py diff --git a/colorama_test.py b/colorama_test.py new file mode 100755 index 0000000..39eec18 --- /dev/null +++ b/colorama_test.py @@ -0,0 +1,12 @@ +#!/usr/bin/env python +from __future__ import division, print_function + +from colorama import init +from colorama import Fore, Back, Style + +init() + +print(Fore.RED + 'some red text') +print(Back.GREEN + 'and with a green background') +print(Fore.RESET + Back.RESET + Style.BRIGHT + 'and in bright text') +print(Fore.RESET + Back.RESET + Style.RESET_ALL + 'back to normal now')