Copyright 1998-2004 Gentoo Foundation # $Id: output.py 4906 2006-11-01
23:55:29Z zmedico $ Copyright (C) 2007-2008 Fabio Erculiani
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
|
|
|
|
|
|
xtermTitleReset()
Reset xterm title to default. |
source code
|
|
|
|
|
|
|
nocolor()
Turn off colorization process-wide. |
source code
|
|
|
|
resetColor()
Reset terminal color currently set. |
source code
|
|
|
string
|
colorize(color_key,
text)
Colorize text with given color key using bash/terminal codes. |
source code
|
|
|
string
|
|
|
string
|
|
|
string
|
|
|
string
|
|
|
string
|
|
|
string
|
|
|
string
|
|
|
string
|
|
|
string
|
|
|
string
|
|
|
string
|
|
|
string
|
|
|
string
|
|
|
string
|
|
|
string
|
|
|
string
|
|
|
|
print_menu(data,
args=None)
Function used by Entropy text client (will be moved from here) to
print the menu output given a properly formatted list. |
source code
|
|
|
|
reset_cursor()
Print to stdout the terminal code to push back cursor at the
beginning of the line. |
source code
|
|
|
None
|
print_error(msg,
back=False,
flush=True)
Service function used by Entropy text client (will be moved from
here) to write error messages to stdout (not stderr, atm). |
source code
|
|
|
None
|
print_info(msg,
back=False,
flush=True)
Service function used by Entropy text client (will be moved from
here) to write info messages to stdout (not stderr, atm). |
source code
|
|
|
None
|
print_warning(msg,
back=False,
flush=True)
Service function used by Entropy text client (will be moved from
here) to write warning messages to stdout (not stderr, atm). |
source code
|
|
|
None
|
print_generic(msg)
Service function used by Entropy text client (will be moved from
here) to write generic messages to stdout (not stderr, atm). |
source code
|
|
|
|
|
|
string
|
readtext(request,
password=False)
Read text from stdin and return it (will be moved from here). |
source code
|
|
|
|
stuff = {'ESC': '\x1b', 'cleanline': ' ...
|
|
|
havecolor = 1
|
|
|
dotitles = 1
|
|
|
esc_seq = '\x1b['
|
|
|
g_attr = {'bg_black': 40, 'bg_blue': 44, 'bg_cyan': 46, 'bg_de...
|
|
|
codes = {'0x000000': '\x1b[30m', '0x0000AA': '\x1b[34m', '0x00...
|
|
|
ansi_color_codes = ['30m', '30;01m', '31m', '31;01m', '32m', '...
|
|
|
rgb_ansi_colors = ['0x000000', '0x555555', '0xAA0000', '0xFF55...
|
|
|
default_xterm_title = None
|
|
|
nc = None
|