trace: Don't use italic escape code.

It's not widely supported, and often emulated with invert highlight,
which is very distracting.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20934>
This commit is contained in:
Jose Fonseca 2022-11-15 10:18:47 +00:00 committed by Marge Bot
parent 77092ca8f4
commit 3ab1a06a15

View file

@ -65,7 +65,7 @@ class AnsiFormatter(Formatter):
_normal = '0m'
_bold = '1m'
_italic = '3m'
_italic = '3m' # Not widely supported
_red = '31m'
_green = '32m'
_blue = '34m'
@ -79,9 +79,7 @@ class AnsiFormatter(Formatter):
self._escape(self._normal)
def variable(self, name):
self._escape(self._italic)
Formatter.variable(self, name)
self._escape(self._normal)
def literal(self, value):
self._escape(self._blue)