Module: Mesa
Branch: main
Commit: 3ab1a06a158298dd4cef56a2914731d47fcab4d6
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3ab1a06a158298dd4cef56a2914731d47fcab4d6

Author: Jose Fonseca <[email protected]>
Date:   Tue Nov 15 10:18:47 2022 +0000

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>

---

 src/gallium/tools/trace/format.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/gallium/tools/trace/format.py 
b/src/gallium/tools/trace/format.py
index d50675c45d0..32434356ab1 100755
--- a/src/gallium/tools/trace/format.py
+++ b/src/gallium/tools/trace/format.py
@@ -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)

Reply via email to