I am using an online IDE: www.online-ide.com or replit.com make a text based dungeon game. I am trying to use coloured text to make things clearer with the combat system but cannot work out how to. I have tried using pip install termcolour
in the shell tab and have tried in both IDEs code such as:
print('33[31mHello World but Red!33[0m')
# Print text with a blue background
print('33[44mHello World but on Blue!33[0m')
# Print text in red with a blue background
print('33[31m33[44mHello World but Red on Blue!33[0m')
but it doesn’t print coloured text, what is the simplest way to make coloured text (without libraries if possible)?
4