You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python supports text colour on the terminal. Based on the JH injunction against installing additional py packages, the best option appears to be colorama which is part of base Python
Usage is pretty straightforward:
import colorama
print( colorama.Fore.YELLOW, colorama.Back.BLUE, "Here is some text", colorama.Style.RESET_ALL )
Style guide
Yah, this is important! If we use colours inconsistently, then we create an effect that's unappealing at best and nausea-inducing at worst. Style guide started here in the wiki.
The text was updated successfully, but these errors were encountered:
This implements colours using colorama (per issue #59), though more to do. However it also makes tweaks through much of the code as part of that and also fixes a bug issue #60 so though it best to get it into main before any more branches.
Use colours to increase clarity & visual appeal
What library?
Python supports text colour on the terminal. Based on the JH injunction against installing additional py packages, the best option appears to be colorama which is part of base Python
Usage is pretty straightforward:
Style guide
Yah, this is important! If we use colours inconsistently, then we create an effect that's unappealing at best and nausea-inducing at worst. Style guide started here in the wiki.
The text was updated successfully, but these errors were encountered: