Search code examples
pythonimportcolorama

Colorama, Fore is applying red to the whole code


So I have imported the module Colorama and used print(Fore.RED + "JasoPC copyright 2022") and it applies this to every print and text displayed under it, how do I fix this?

import colorama
from colorama import Fore

user = input("Please enter your name_>>> ")
print(Fore.RED + "JasoPC copyright 2022")
print("Current Version V.1.3.6")
time.sleep(0.5)
print("BOOTING UP 0%")
time.sleep(1)
print("BOOTING UP 25%")
time.sleep(1)
print("BOOTING UP 75%")
time.sleep(0.5)
print("BOOTING UP 100%")
print("ALL DONE")
time.sleep(0.3)
print("configuring[...]")

enter image description here


Solution

  • You have to add Fore.RESET

    print(Fore.RED + "JasoPC copyright 2022" + Fore.RESET)