summaryrefslogtreecommitdiff
path: root/linaropy/colors.py
blob: 33d8d16aa6d67e3bee18041548f71315fa91c6a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
RED = "\033[31m"
BLUE = "\033[34m"
NC = "\033[0m"
GREEN = "\033[32m"
BOLD = "\033[1m"
ITALIC = "\033[3m"

def print_info(pstr):
    """ This precedes pstr with two blue asterisks and a space.  The input
        string parameter, pstr, may also contain color codes from
        linaropy/colors.py embedded in the string.  This function always returns
        the terminal to no-color text after printing pstr. """
    print BLUE + "** " + NC + pstr + NC