From bd8066407e6b8ce1540edea31ad53f9a0455ec05 Mon Sep 17 00:00:00 2001 From: Azalea Date: Thu, 1 Jun 2023 23:39:47 -0700 Subject: [PATCH] [F] Fix color messed up after animation ends --- hyfetch/pride_month.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hyfetch/pride_month.py b/hyfetch/pride_month.py index b88d71b4..8242057a 100644 --- a/hyfetch/pride_month.py +++ b/hyfetch/pride_month.py @@ -2,7 +2,7 @@ import math from time import sleep from hyfetch import presets -from hyfetch.color_util import RGB, color +from hyfetch.color_util import RGB, color, printc from hyfetch.constants import IS_WINDOWS from hyfetch.neofetch_util import term_size from hyfetch.presets import PRESETS @@ -117,7 +117,8 @@ def start_animation(): pass # Clear the screen - print("\033[2J\033[H", end="") + printc("&r") + print("\033[2J\033[H", end="", flush=True) if __name__ == '__main__':