diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-11-14 17:05:18 +0100 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-11-14 17:05:18 +0100 |
commit | e39d570d3a6a32df16d3fc871a5c2220ea74ab0f (patch) | |
tree | 758f898979da79438b933585865d7d3dde07a9b7 /mesonbuild/mlog.py | |
parent | e1fd8300709455b2663b98cb2f3d0cfe80427ee9 (diff) | |
download | meson-e39d570d3a6a32df16d3fc871a5c2220ea74ab0f.zip meson-e39d570d3a6a32df16d3fc871a5c2220ea74ab0f.tar.gz meson-e39d570d3a6a32df16d3fc871a5c2220ea74ab0f.tar.bz2 |
mlog: add non bold version of colors
Diffstat (limited to 'mesonbuild/mlog.py')
-rw-r--r-- | mesonbuild/mlog.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mesonbuild/mlog.py b/mesonbuild/mlog.py index 416e683..14ad92f 100644 --- a/mesonbuild/mlog.py +++ b/mesonbuild/mlog.py @@ -127,6 +127,21 @@ def blue(text: str) -> AnsiDecorator: def cyan(text: str) -> AnsiDecorator: return AnsiDecorator(text, "\033[1;36m") +def normal_red(text: str) -> AnsiDecorator: + return AnsiDecorator(text, "\033[31m") + +def normal_green(text: str) -> AnsiDecorator: + return AnsiDecorator(text, "\033[32m") + +def normal_yellow(text: str) -> AnsiDecorator: + return AnsiDecorator(text, "\033[33m") + +def normal_blue(text: str) -> AnsiDecorator: + return AnsiDecorator(text, "\033[34m") + +def normal_cyan(text: str) -> AnsiDecorator: + return AnsiDecorator(text, "\033[36m") + # This really should be AnsiDecorator or anything that implements # __str__(), but that requires protocols from typing_extensions def process_markup(args: Sequence[Union[AnsiDecorator, str]], keep: bool) -> List[str]: |