Module clush :: Class Display
[hide private]
[frames] | no frames]

Class Display

source code


Output display class for clush script.

Instance Methods [hide private]
 
__init__(self, color=True)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_getlmode(self) source code
 
_setlmode(self, value) source code
 
_format_header(self, nodeset)
Format nodeset-based header.
source code
 
print_line(self, nodeset, line)
Display a line with optional label.
source code
 
print_line_error(self, nodeset, line)
Display an error line with optional label.
source code
 
print_gather(self, nodeset, obj)
Generic method for displaying nodeset/content according to current object settings.
source code
 
_print_buffer(self, nodeset, content)
Display a dshbak-like header block and content.
source code
 
_print_lines(self, nodeset, msg)
Display a MsgTree buffer by line with prefixed header.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  COLOR_STDOUT_FMT = '\x1b[34m%s\x1b[0m'
  COLOR_STDERR_FMT = '\x1b[31m%s\x1b[0m'
  SEP = '---------------'
Properties [hide private]
  line_mode

Inherited from object: __class__

Method Details [hide private]

__init__(self, color=True)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

Property Details [hide private]

line_mode

Get Method:
_getlmode(self)
Set Method:
_setlmode(self, value)