Skip to content

Commit 2a997b2

Browse files
author
hlcrd
committed
windows colorama
1 parent 6e829e8 commit 2a997b2

4 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/client/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
from client_init import debug_messages # Function for coloring debug messages | customization
88
from client_init import color_messages # Function to color subsequent messages forever | customization
99

10+
colorama.init(autoreset = True)
11+
1012
DEBUG = 1 # The presence of comments inthe output and more detailed work, set at your discretion to control the operation of the program
1113

1214
print('Available customizations:\n 1 - default (white/black)\n 2 - green\n 3 - red\n 4 - blue')

src/client/client_init.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def color_messages(mode: int):
2828
print(colorama.Fore.BLUE)
2929

3030
def main():
31+
colorama.init(autoreset = True)
3132
host = sys.argv[1]
3233
port = int(sys.argv[2])
3334
DEBUG = int(sys.argv[3])

src/server/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from server_init import debug_messages # Function for coloring debug messages | customization
88
from server_init import color_messages # Function to color subsequent messages forever | customization
99

10+
colorama.init(autoreset = True)
1011

1112
DEBUG = 1 # The presence of comments inthe output and more detailed work, set at your discretion to control the operation of the program
1213

src/server/server_init.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def color_messages(mode: int):
2828
print(colorama.Fore.BLUE)
2929

3030
def main():
31+
colorama.init(autoreset = True)
3132
port = int(sys.argv[1])
3233
DEBUG = int(sys.argv[2])
3334
mode = int(sys.argv[3])

0 commit comments

Comments
 (0)