mlog: add support for italic/emphasized text in AnsiText

pull/9478/head
Hemmo Nieminen 3 years ago committed by Eli Schwartz
parent 565b12183f
commit a9e25f4765
  1. 3
      mesonbuild/mlog.py

@ -156,6 +156,9 @@ class AnsiText:
def bold(text: str, quoted: bool = False) -> AnsiDecorator:
return AnsiDecorator(text, "\033[1m", quoted=quoted)
def italic(text: str, quoted: bool = False) -> AnsiDecorator:
return AnsiDecorator(text, "\033[3m", quoted=quoted)
def plain(text: str) -> AnsiDecorator:
return AnsiDecorator(text, "")

Loading…
Cancel
Save