libcopp  1.1.0
Public Member Functions | Static Public Attributes
print_color.TermColor Class Reference
Collaboration diagram for print_color.TermColor:
Collaboration graph

Public Member Functions

def stdout_with_color (self, options, text)
 
def stderr_with_color (self, options, text)
 

Static Public Attributes

string name = 'terminal'
 
dictionary COLOR_MAP
 

Detailed Description

Definition at line 118 of file print_color.py.

Member Function Documentation

def print_color.TermColor.stderr_with_color (   self,
  options,
  text 
)

Definition at line 152 of file print_color.py.

def print_color.TermColor.stdout_with_color (   self,
  options,
  text 
)

Definition at line 142 of file print_color.py.

Field Documentation

dictionary print_color.TermColor.COLOR_MAP
static
Initial value:
1 = {
2  print_style.FC_BLACK: '30',
3  print_style.FC_BLUE: '34',
4  print_style.FC_GREEN: '32',
5  print_style.FC_CYAN: '36',
6  print_style.FC_RED: '31',
7  print_style.FC_MAGENTA: '35',
8  print_style.FC_YELLOW: '33',
9  print_style.FC_WHITE: '37',
10 
11  print_style.BC_BLACK: '40',
12  print_style.BC_BLUE: '44',
13  print_style.BC_GREEN: '42',
14  print_style.BC_CYAN: '46',
15  print_style.BC_RED: '41',
16  print_style.BC_MAGENTA: '45',
17  print_style.BC_YELLOW: '43',
18  print_style.BC_WHITE: '47',
19 
20  print_style.FW_BOLD: '1'
21  }

Definition at line 120 of file print_color.py.

string print_color.TermColor.name = 'terminal'
static

Definition at line 119 of file print_color.py.


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