i would like to find out if there is any way to code in colour to python? Ive researched colorama and stuff like that but unfortunately i cant download anything at school to add colour to my python program. I am trying to make a grid for a treasure hunt game, and i would like to colour in some of the tiles
Asked
Active
Viewed 74 times
0
-
2http://stackoverflow.com/questions/287871/print-in-terminal-with-colors-using-python – vaultah Nov 06 '15 at 14:15
-
Could you provide more details? What do you want to color? The output on the console? – Salo Nov 06 '15 at 14:22
-
Yeah, wanted to colour the output on the IDLE. We use IDLE at school, and are unfortunately stuck with it as the python console is extremely buggy for unknown reasons – TeskeyIP May 16 '17 at 09:22
1 Answers
0
What colorama (and similar) libraries do under the hood is print 'ansi escape sequences' to generate terminal colors. you can read more about these special sequences here:
http://www.linuxhowtos.org/Tips%20and%20Tricks/ansi_escape_sequences.htm

Woodrow Douglass
- 2,605
- 3
- 25
- 41