commit:     fbbbabdd395d8f63c97262c70cd240eb2f66398b
Author:     Andrey Mazo <ahippo <AT> yandex <DOT> com>
AuthorDate: Sun Aug 12 02:11:12 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Aug 26 07:18:42 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbbbabdd

net-analyzer/nload: patch to fix text sliding effect

Apply the following patch from upstream:
8a93886 "Eliminate flicker on some terminals like rxvt (thanks to Alex Wilson)"

This fixes network utilization graph rendering issue.
(the text on the right side of the screen
slides to the left together with graph updates)

Closes: https://bugs.gentoo.org/663402
Closes: https://github.com/gentoo/gentoo/pull/9543
Package-Manager: Portage-2.3.40, Repoman-2.3.9

 ...0.7.4-Eliminate-flicker-on-some-terminals.patch | 26 ++++++++++++++++++++++
 net-analyzer/nload/nload-0.7.4-r1.ebuild           |  1 +
 2 files changed, 27 insertions(+)

diff --git 
a/net-analyzer/nload/files/nload-0.7.4-Eliminate-flicker-on-some-terminals.patch
 
b/net-analyzer/nload/files/nload-0.7.4-Eliminate-flicker-on-some-terminals.patch
new file mode 100644
index 00000000000..8d13545c786
--- /dev/null
+++ 
b/net-analyzer/nload/files/nload-0.7.4-Eliminate-flicker-on-some-terminals.patch
@@ -0,0 +1,26 @@
+From 8a93886e0fb33a81b8fe32e88ee106a581fedd34 Mon Sep 17 00:00:00 2001
+From: Roland Riegel <[email protected]>
+Date: Sun, 28 Jan 2018 16:59:39 +0100
+Subject: [PATCH 1/1] Eliminate flicker on some terminals like rxvt (thanks to
+ Alex Wilson)
+
+---
+ src/window.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/window.cpp b/src/window.cpp
+index bfa7701..2083fd0 100644
+--- a/src/window.cpp
++++ b/src/window.cpp
+@@ -108,7 +108,7 @@ void Window::refresh()
+ void Window::clear()
+ {
+     if(m_window)
+-        wclear(m_window);
++        werase(m_window);
+ }
+ 
+ // move and resize window
+-- 
+2.16.4
+

diff --git a/net-analyzer/nload/nload-0.7.4-r1.ebuild 
b/net-analyzer/nload/nload-0.7.4-r1.ebuild
index d65af8f4202..1de5b572103 100644
--- a/net-analyzer/nload/nload-0.7.4-r1.ebuild
+++ b/net-analyzer/nload/nload-0.7.4-r1.ebuild
@@ -19,6 +19,7 @@ BDEPEND="virtual/pkgconfig"
 
 PATCHES=(
        "${FILESDIR}"/${P}-tinfo.patch
+       "${FILESDIR}"/${P}-Eliminate-flicker-on-some-terminals.patch
 )
 
 src_prepare() {

Reply via email to