libcopp  1.1.0
Data Structures | Functions | Variables
print_color Namespace Reference

Data Structures

class  HtmlColor
 
class  NoneColor
 
class  print_style
 
class  TermColor
 
class  Win32ConsoleColor
 

Functions

def cprintf_set_mode (mode_name='auto')
 
def cprintf_set_theme (theme_name=None)
 
def cprintf_unpack_text (fmt, text)
 
def cprintf_stdout (options, fmt, text)
 
def cprintf_stderr (options, fmt, text)
 

Variables

 console_encoding = sys.getfilesystemencoding()
 
string usage = "usage: %prog [options...] <format message> [format parameters...]"
 
 parser = OptionParser(usage)
 
 action
 
 help
 
 dest
 
 metavar
 
 const
 
 FW_BOLD
 
 default
 
 options
 
 left_args
 
string print_stream = 'stdout'
 
list print_options = []
 
list fc_list = ['FC_' + x.upper() for x in options.color or [] ]
 
list bk_list = ['BC_' + y.upper() for y in options.background_color or [] ]
 

Function Documentation

def print_color.cprintf_set_mode (   mode_name = 'auto')

Definition at line 221 of file print_color.py.

Referenced by cprintf_stderr().

def print_color.cprintf_set_theme (   theme_name = None)

Definition at line 266 of file print_color.py.

def print_color.cprintf_stderr (   options,
  fmt,
  text 
)

Definition at line 289 of file print_color.py.

References cprintf_set_mode(), and cprintf_unpack_text().

def print_color.cprintf_stdout (   options,
  fmt,
  text 
)

Definition at line 284 of file print_color.py.

References cprintf_unpack_text().

def print_color.cprintf_unpack_text (   fmt,
  text 
)

Definition at line 273 of file print_color.py.

Referenced by cprintf_stderr(), and cprintf_stdout().

Variable Documentation

print_color.action
list print_color.bk_list = ['BC_' + y.upper() for y in options.background_color or [] ]

Definition at line 319 of file print_color.py.

print_color.console_encoding = sys.getfilesystemencoding()

Definition at line 8 of file print_color.py.

print_color.const

Definition at line 306 of file print_color.py.

print_color.default

Definition at line 308 of file print_color.py.

print_color.dest

Definition at line 303 of file print_color.py.

list print_color.fc_list = ['FC_' + x.upper() for x in options.color or [] ]

Definition at line 318 of file print_color.py.

print_color.FW_BOLD

Definition at line 306 of file print_color.py.

print_color.help

Definition at line 303 of file print_color.py.

print_color.left_args

Definition at line 313 of file print_color.py.

print_color.metavar

Definition at line 304 of file print_color.py.

print_color.options

Definition at line 313 of file print_color.py.

print_color.parser = OptionParser(usage)

Definition at line 300 of file print_color.py.

list print_color.print_options = []

Definition at line 316 of file print_color.py.

string print_color.print_stream = 'stdout'

Definition at line 315 of file print_color.py.

string print_color.usage = "usage: %prog [options...] <format message> [format parameters...]"

Definition at line 299 of file print_color.py.