0

I'm trying to use ANSI colour codes to output coloured text in python, but this is what happens:

print("\033[1;32;40mBright Green")

Outputted: [1;32;40mBright Green

I am running python 3.5.2 on macOS Sierra. Is my code missing something, or can I not use this on a mac?

Thomas Dickey
  • 51,086
  • 7
  • 70
  • 105
Tom
  • 19
  • 1
  • 3

0 Answers0