takashi kadono / Mbed OS Nucleo_446

Dependencies:   ssd1331

Embed: (wiki syntax)

« Back to documentation index

TerminalNotifier Class Reference

TerminalNotifier Class Reference

Inherits Notifier.

Public Member Functions

def print_notify
def print_notify_verbose
def colorstring_to_escapecode
def print_in_color

Detailed Description

Writes notifications to a terminal based on silent, verbose and color flags.

Definition at line 28 of file term.py.


Member Function Documentation

def colorstring_to_escapecode (   self,
  color_string 
)
Convert a color string from a string into an ascii escape code that
will print that color on the terminal.

Positional arguments:
color_string - the string to parse

Definition at line 119 of file term.py.

def print_in_color (   self,
  event,
  msg 
)
Wrap a toolchain notifier in a colorizer. This colorizer will wrap
notifications in a color if the severity matches a color in the
CLI_COLOR_MAP.
The notification function inself

Definition at line 134 of file term.py.

def print_notify (   self,
  event 
)
Command line notification

Definition at line 80 of file term.py.

def print_notify_verbose (   self,
  event 
)
Command line notification with more verbose mode

Definition at line 107 of file term.py.