diff --git a/demos/demo02.py b/demos/demo02.py index ea96d87..8ca7d4b 100644 --- a/demos/demo02.py +++ b/demos/demo02.py @@ -5,9 +5,9 @@ from __future__ import print_function import fixpath -from colorama import init, Fore, Back, Style +from colorama import just_fix_windows_console, Fore, Back, Style -init() +just_fix_windows_console() print(Fore.GREEN + 'green, ' + Fore.RED + 'red, ' diff --git a/demos/demo06.py b/demos/demo06.py index f9125d8..21f7acc 100644 --- a/demos/demo06.py +++ b/demos/demo06.py @@ -24,7 +24,7 @@ PASSES = 1000 def main(): - colorama.init() + colorama.just_fix_windows_console() pos = lambda y, x: Cursor.POS(x, y) # draw a white border. print(Back.WHITE, end='') diff --git a/demos/demo07.py b/demos/demo07.py index f569580..0d28a1e 100644 --- a/demos/demo07.py +++ b/demos/demo07.py @@ -16,7 +16,7 @@ def main(): aba 3a4 """ - colorama.init() + colorama.just_fix_windows_console() print("aaa") print("aaa") print("aaa")