Skip to content

Commit

Permalink
init->just_fix_windows_console in all demos that call bare init()
Browse files Browse the repository at this point in the history
  • Loading branch information
njsmith committed Oct 17, 2022
1 parent 5f1794d commit bab6f93
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions demos/demo02.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, '
Expand Down
2 changes: 1 addition & 1 deletion demos/demo06.py
Original file line number Diff line number Diff line change
Expand Up @@ -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='')
Expand Down
2 changes: 1 addition & 1 deletion demos/demo07.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def main():
aba
3a4
"""
colorama.init()
colorama.just_fix_windows_console()
print("aaa")
print("aaa")
print("aaa")
Expand Down

0 comments on commit bab6f93

Please sign in to comment.