From bab6f9391a23bd005fc3602709b5ab09296a5578 Mon Sep 17 00:00:00 2001 From: "Nathaniel J. Smith" Date: Sun, 16 Oct 2022 19:33:48 -0700 Subject: [PATCH] init->just_fix_windows_console in all demos that call bare init() --- demos/demo02.py | 4 ++-- demos/demo06.py | 2 +- demos/demo07.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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")