0

I'm trying to print a table with colored text using prettytable. When I run it in VSCode it works.

However if I then try to run it with Windows cmd no colors are shown

relevant Python Code:

...
#Colours
green = '\033[92m'
yellow = '\033[93m'
red = '\033[91m'
reset = '\033[0m'
...
t = PrettyTable(['Datum', 'Anzahl', ...])
t.add_row([line[0], green+str(line[1])+reset, ...])
print(t)
Manticore
  • 1
  • 1

1 Answers1

-2

windows cmd is not that much modified and does not provide that number of functions that VS code gives you. Colour is one of the most highlighting feature of VS CODE.

Ayushje
  • 3
  • 6