Skip to content Skip to sidebar Skip to footer

Python Beginner - How To Customize The Output Window

I am a beginner from a non programming background. I am using windows OS. Whenever I write a program in Python and run it, it opens in MS Dos with a black colored screen. I just wa

Solution 1:

The Windows command shell is pretty limited, it doesn't support the ANSI color codes that other OSes' shells do. But I found that the colorama module is extremely useful to get colors in Python command line interfaces.

Example from the website linked to above: enter image description here

And here's a colorful Hello World with code and output:

enter image description here


Solution 2:

Right click on the title bar of the command prompt. Go to properties. You can change all you want from Font & Color tabs there?


Solution 3:

For the whole window, http://www.wikihow.com/Change-Colours-in-Command-Prompt

For per-output colour, maybe something from here: How to echo with different colors in the Windows command line


Post a Comment for "Python Beginner - How To Customize The Output Window"