check-makefile-subdirs.Colours Class Reference

Public Member Functions

def disable (self)
 

Public Attributes

 Header
 
 Endc
 

Static Public Attributes

string Header = '\033[96m'
 
string Endc = '\033[0m'
 

Detailed Description

Very simple class for coloring in text output. Stolen from
http://stackoverflow.com/questions/287871/print-in-terminal-with-colors-using-python

If we were using python 3 we could use the termcolor package instead.

Member Function Documentation

◆ disable()

def check-makefile-subdirs.Colours.disable (   self)
35  def disable(self):
36  self.Header = ''
37  # self.Okgreen = ''
38  # self.MakeFail = ''
39  # self.TestFail = ''
40  self.Endc = ''
41 
42 # Make a GLOBAL colours object to tell print functions how to make things
43 # pretty. Easier to make it global because we want to be able to disable it
44 # from inside main() without passing around a Colours object all over the
45 # place.

Member Data Documentation

◆ Endc [1/2]

string check-makefile-subdirs.Colours.Endc = '\033[0m'
static

◆ Endc [2/2]

check-makefile-subdirs.Colours.Endc

◆ Header [1/2]

string check-makefile-subdirs.Colours.Header = '\033[96m'
static

◆ Header [2/2]

check-makefile-subdirs.Colours.Header

The documentation for this class was generated from the following file: