[Python] ANSI escape codes not changing foreground color in VSCode terminal, but work in other...

Discussão em 'Python' iniciado por Stack, Abril 9, 2025.

  1. Stack

    Stack Membro Participativo

    in this code I wanna change the fore and back color if I use them separately It works but in this code it does not change the fore color in vscode terminal but in other terminals it changed How can I fix this problem via Ansi code or in setting ? but this code works perfectly in cmd or shell or other terminals

    from colorama import *
    init()
    print(Fore.GREEN+Back.RED+"This is Colored text!")


    [​IMG]

    Continue reading...

Compartilhe esta Página