termstyleA dirt-simple terminal-colour library | |
Download |
termstyle Ranking & Summary
Advertisement
- License:
- BSD License
- Price:
- FREE
- Publisher Name:
- Tim Cuthbertson
- Publisher web site:
- http://gfxmonk.net
termstyle Tags
termstyle Description
A dirt-simple terminal-colour library termstyle is a simple Python library for adding coloured output to terminal (console) programs.Standard Usage: from termstyle import * print "%s:%s" % (red('Hey'), green('how are you?')) print blue('How ', bold('you'), ' doin?')or, you can use a colour just as a string print "%sBlue!%s" % (blue, reset)Styles: reset (no colour / style) # colour: black red green yellow blue magenta cyan white # background colour: bg_black bg_red bg_green bg_yellow bg_blue bg_magenta bg_cyan bg_white # weight: bold underscore invertedControls: auto() - sets colouring on only if sys.stdout is a terminal disabe() - disable colours enable() - enable colours Requirements: · Python
termstyle Related Software