summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Mazo <ahippo@yandex.com>2018-08-12 05:11:12 +0300
committerMichał Górny <mgorny@gentoo.org>2018-08-26 09:18:42 +0200
commitfbbbabdd395d8f63c97262c70cd240eb2f66398b (patch)
treec1677891b3e4e470e229d4e71bf3c483e1594c4d /net-analyzer/nload
parentnet-analyzer/nload: migrate to EAPI=7, shorten description (diff)
downloadgentoo-fbbbabdd395d8f63c97262c70cd240eb2f66398b.tar.gz
gentoo-fbbbabdd395d8f63c97262c70cd240eb2f66398b.tar.bz2
gentoo-fbbbabdd395d8f63c97262c70cd240eb2f66398b.zip
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
Diffstat (limited to 'net-analyzer/nload')
-rw-r--r--net-analyzer/nload/files/nload-0.7.4-Eliminate-flicker-on-some-terminals.patch26
-rw-r--r--net-analyzer/nload/nload-0.7.4-r1.ebuild1
2 files changed, 27 insertions, 0 deletions
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 000000000000..8d13545c786c
--- /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 <roland@roland-riegel.de>
+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 d65af8f42024..1de5b5721038 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() {