Performs fancy terminal formatting for status and informational
messages.
The provided methods produce identical terminal output to the
eponymous functions in the shell script /sbin/functions.sh
and also accept identical parameters.
This is not currently a drop-in replacement however, as the
output-related functions in /sbin/functions.sh are oriented
for use mainly by system init scripts and ebuilds and their output can be
customized via certain RC_* environment variables (see
/etc/conf.d/rc). EOutput is not customizable in this
manner since it's intended for more general uses. Likewise, no logging is
provided.
|
|
__init__(self,
quiet=False)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
eend(self,
errno,
*msg)
Indicates the completion of a process, optionally displaying a
message via eerror if the process's exit status isn't
0. |
source code
|
|
|
|
|
|
|
einfo(self,
msg)
Shows an informative message terminated with a newline. |
source code
|
|
|
|
einfon(self,
msg)
Shows an informative message terminated without a newline. |
source code
|
|
|
|
|
|
|
ewend(self,
errno,
*msg)
Indicates the completion of a process, optionally displaying a
message via ewarn if the process's exit status isn't
0. |
source code
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|