libcopp 2.3.1
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Attributes
print_color.TermColor Class Reference
Collaboration diagram for print_color.TermColor:
Collaboration graph

Public Member Functions

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

Static Public Attributes

str name = "terminal"
 
dict COLOR_MAP
 

Detailed Description

Definition at line 130 of file print_color.py.

Member Function Documentation

◆ stderr_with_color()

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

Definition at line 163 of file print_color.py.

◆ stdout_with_color()

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

Definition at line 152 of file print_color.py.

Field Documentation

◆ COLOR_MAP

dict print_color.TermColor.COLOR_MAP
static
Initial value:
= {
print_style.FC_BLACK: "30",
print_style.FC_BLUE: "34",
print_style.FC_GREEN: "32",
print_style.FC_CYAN: "36",
print_style.FC_RED: "31",
print_style.FC_MAGENTA: "35",
print_style.FC_YELLOW: "33",
print_style.FC_WHITE: "37",
print_style.BC_BLACK: "40",
print_style.BC_BLUE: "44",
print_style.BC_GREEN: "42",
print_style.BC_CYAN: "46",
print_style.BC_RED: "41",
print_style.BC_MAGENTA: "45",
print_style.BC_YELLOW: "43",
print_style.BC_WHITE: "47",
print_style.FW_BOLD: "1",
}

Definition at line 132 of file print_color.py.

◆ name

str print_color.TermColor.name = "terminal"
static

Definition at line 131 of file print_color.py.


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