Skip to content
Status output

Status output

Colored status output — colorama (Fore + autoreset)

init(autoreset=True) configures Colorama once at startup. After each print, the terminal color returns to its default instead of continuing into later output. Fore.<COLOR> inserts the terminal control sequence for the selected foreground color. [+] marks a confirmed success, [-] marks failure, and progress messages have no bracketed marker.

from colorama import Fore, init

init(autoreset=True)   # reset color after each print -- no manual Style.RESET_ALL

print(f"[+] {Fore.LIGHTGREEN_EX}Success -- step worked")
print(f"[-] {Fore.RED}Failure -- bail here")
print(f"{Fore.CYAN}Info / progress")

Find by: colorama, colored output, terminal color, fore, red, green, cyan, status, autoreset, ansi, print, progress, init, windows · Source: CWEE/many