commit:     bd7f60f003cb9e5c3c8198df92a88ced4a43877c
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 24 00:24:51 2018 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Mon Sep 24 00:55:29 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd7f60f0

www-client/firefox: fix improper usage of blessings.tigetstr

Closes: https://bugs.gentoo.org/666840
Package-Manager: Portage-2.3.49, Repoman-2.3.10

 www-client/firefox/files/firefox-60.0-blessings-TERM.patch | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/www-client/firefox/files/firefox-60.0-blessings-TERM.patch 
b/www-client/firefox/files/firefox-60.0-blessings-TERM.patch
index 3d024a47b99..975e0cf6fe7 100644
--- a/www-client/firefox/files/firefox-60.0-blessings-TERM.patch
+++ b/www-client/firefox/files/firefox-60.0-blessings-TERM.patch
@@ -54,3 +54,17 @@ index 3872b5f..fdceb09 100644
                  # There was an error setting up the terminal, either curses is
                  # not supported or TERM is incorrectly set. Fall back to dumb.
                  self._does_styling = False
+
+
+--- a/python/mach/mach/logging.py
++++ b/python/mach/mach/logging.py
+@@ -93,7 +93,7 @@
+ 
+     def set_terminal(self, terminal):
+         self.terminal = terminal
+-        self._sgr0 = blessings.tigetstr('sgr0') or '' if terminal and 
blessings else ''
++        self._sgr0 = terminal.normal if terminal and blessings else ''
+ 
+     def format(self, record):
+         f = record.msg.format(**record.params)
+ 

Reply via email to