Skip to content
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.

Latest commit

 

History

History
executable file
·
31 lines (20 loc) · 710 Bytes

README.md

File metadata and controls

executable file
·
31 lines (20 loc) · 710 Bytes

libcolors.py

This small script allows to use bash colors.

Usage

from libcolors import color
s1 = color("red &black bold underline")
s2 = color()  # Restore default color
print s1 + "Red on black, bold and underlined" + s2

Available colors and background colors:

black, white, red, green, blue, yellow, purple, cyan

Available colors and background colors:

regular, bold (light), underline, strike, dark, invert

About

Author: hellman ( [email protected] )

License: GNU General Public License v2 (http://opensource.org/licenses/gpl-2.0.php)