= ANSI escape sequences https://en.wikipedia.org/wiki/ANSI_escape_code https://stackoverflow.com/a/33206814 == colors python command structure: print("\033[X;Y;Zm text \033[0m\n") X = 0 reset 1 bold 4 underlined 5 blinking text Y = 30 black 31 red 32 green 33 yellow 34 blue 35 magenta 36 cyan 37 white 39 default Z = 40 black 41 red 42 green 43 yellow 44 blue 45 magenta 46 cyan 47 white 49 default == python examples print("\033[0;30;47m black text; white background \033[0m\n") print("\033[1;30;49m bold black text \033[0m\n") print("\033[0;31;49m red text \033[0m\n") print("\033[0;33;49m yellow text \033[0m\n") print("\033[0;32;49m green text \033[0m\n") print("\033[0;34;49m blue text \033[0m\n")