From 895829a81144205ad243615acdd4e3fb0ef30211 Mon Sep 17 00:00:00 2001 From: Owen Jones <Owen.Jones@uwe.ac.uk> Date: Fri, 15 Nov 2024 12:02:05 +0000 Subject: [PATCH] testing this little fix for ANSI colors --- connect/src/connect.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/connect/src/connect.py b/connect/src/connect.py index 1f5bc48..fa948ce 100644 --- a/connect/src/connect.py +++ b/connect/src/connect.py @@ -9,7 +9,7 @@ import subprocess import sys from time import sleep -__VERSION__ = "1.0a" +__VERSION__ = "1.0b" SERVER_RESOURCE_NAME = "CSCT Cloud Programming" SERVER_ADDRESS = "csctcloud.uwe.ac.uk" @@ -57,6 +57,9 @@ class TerminalFormatter(logging.Formatter): def print_header() -> None: + os.system( + "" + ) # this fixes ANSI escape sequences not displaying properly on some builds print(Terminal.BOLD + Terminal.BRIGHT_BLUE, end="") print( r" ,-----. ,---. ,-----.,--------. ,-----.,--. ,-----. ,--. ,--.,------. " -- GitLab