[packages/mtr] - add patch to restore terminal colors on exit when curses is used

adwol adwol at pld-linux.org
Sun Jan 10 05:54:35 CET 2016


commit 5850c36027fba62cd705159c089ef657a91dc705
Author: Adam Osuchowski <adwol at pld-linux.org>
Date:   Sun Jan 10 05:52:56 2016 +0100

    - add patch to restore terminal colors on exit when curses is used

 mtr-curses-clear_colors.patch | 11 +++++++++++
 mtr.spec                      |  6 +++---
 2 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/mtr.spec b/mtr.spec
index 572dd95..6e05654 100644
--- a/mtr.spec
+++ b/mtr.spec
@@ -10,7 +10,7 @@ Summary(ru.UTF-8):	Matt's Traceroute - утилита для диагности
 Summary(uk.UTF-8):	Matt's Traceroute - утиліта для діагностики мережі
 Name:		mtr
 Version:	0.86
-Release:	2
+Release:	3
 Epoch:		1
 License:	GPL v2
 Group:		Networking/Utilities
@@ -22,7 +22,7 @@ Patch0:		%{name}-Makefile.patch
 
 Patch2:		%{name}-mtr6.patch
 Patch3:		%{name}-display.patch
-
+Patch4:		%{name}-curses-clear_colors.patch
 Patch5:		%{name}-noraw.patch
 Patch6:		%{name}-nox.patch
 URL:		http://www.bitwizard.nl/mtr/
@@ -141,7 +141,7 @@ процесу mtr виводить поточну статистику по к
 
 %patch2 -p1
 %patch3 -p1
-
+%patch4 -p1
 %patch5 -p1
 %patch6 -p1
 
diff --git a/mtr-curses-clear_colors.patch b/mtr-curses-clear_colors.patch
new file mode 100644
index 0000000..7f795fa
--- /dev/null
+++ b/mtr-curses-clear_colors.patch
@@ -0,0 +1,11 @@
+diff -ruNp mtr-0.86.orig/curses.c mtr-0.86/curses.c
+--- mtr-0.86.orig/curses.c	2014-12-09 12:20:57.000000000 +0100
++++ mtr-0.86/curses.c	2016-01-10 05:43:56.278385752 +0100
+@@ -713,6 +713,7 @@ void mtr_curses_open(void)
+ void mtr_curses_close(void)
+ {  
+   printw("\n");
++  use_default_colors();
+   endwin();
+ }
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mtr.git/commitdiff/5850c36027fba62cd705159c089ef657a91dc705



More information about the pld-cvs-commit mailing list