daklib.termcolor
TermColor utils for dak
@contact: Debian FTP Master <ftpmaster@debian.org>
@copyright: 2019 Mo Zhou <lumin@debian.org>
@license: GNU General Public License version 2 or later
Functions
colorize (s, fg[, bg, bold, ul])
|
s: str -- string to be colorized fg: str -- foreground color. |
-
daklib.termcolor.colorize(s: str, fg: str, bg: Optional[str] = None, bold=False, ul=False) → str[source]
s: str – string to be colorized
fg: str – foreground color. See _COLORS_ for choices
bg: str – background color. See _COLORS_ for choices
bold: bool – bold font?
ul: bool – underline?