libcopp  2.2.0
Data Structures | Functions | Variables
print_color Namespace Reference

Data Structures

class  print_style
 
class  Win32ConsoleColor
 
class  TermColor
 
class  HtmlColor
 
class  NoneColor
 

Functions

def cprintf_resolve_auto_mode ()
 
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
 
 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

◆ cprintf_resolve_auto_mode()

def print_color.cprintf_resolve_auto_mode ( )

Definition at line 238 of file print_color.py.

Referenced by cprintf_set_mode().

◆ cprintf_set_mode()

def print_color.cprintf_set_mode (   mode_name = "auto")

Definition at line 289 of file print_color.py.

References cprintf_resolve_auto_mode().

Referenced by cprintf_stderr().

◆ cprintf_set_theme()

def print_color.cprintf_set_theme (   theme_name = None)

Definition at line 319 of file print_color.py.

◆ cprintf_stderr()

def print_color.cprintf_stderr (   options,
  fmt,
text 
)

Definition at line 348 of file print_color.py.

References cprintf_set_mode(), and cprintf_unpack_text().

◆ cprintf_stdout()

def print_color.cprintf_stdout (   options,
  fmt,
text 
)

Definition at line 342 of file print_color.py.

References cprintf_unpack_text().

◆ cprintf_unpack_text()

def print_color.cprintf_unpack_text (   fmt,
  text 
)

Definition at line 327 of file print_color.py.

Referenced by cprintf_stderr(), and cprintf_stdout().

Variable Documentation

◆ action

print_color.action

◆ bk_list

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

Definition at line 444 of file print_color.py.

◆ console_encoding

print_color.console_encoding = sys.getfilesystemencoding()

Definition at line 10 of file print_color.py.

◆ const

print_color.const

Definition at line 393 of file print_color.py.

◆ default

print_color.default

Definition at line 411 of file print_color.py.

◆ dest

print_color.dest

Definition at line 368 of file print_color.py.

◆ fc_list

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

Definition at line 443 of file print_color.py.

◆ help

print_color.help

Definition at line 367 of file print_color.py.

◆ left_args

print_color.left_args

Definition at line 438 of file print_color.py.

◆ metavar

print_color.metavar

Definition at line 376 of file print_color.py.

◆ options

print_color.options

Definition at line 438 of file print_color.py.

◆ parser

print_color.parser = OptionParser(usage)

Definition at line 360 of file print_color.py.

◆ print_options

list print_color.print_options = []

Definition at line 441 of file print_color.py.

◆ print_stream

string print_color.print_stream = "stdout"

Definition at line 440 of file print_color.py.

◆ usage

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

Definition at line 359 of file print_color.py.