From: <abe...@us...> - 2015-10-16 15:39:01
|
Revision: 7274 http://sourceforge.net/p/astlinux/code/7274 Author: abelbeck Date: 2015-10-16 15:38:59 +0000 (Fri, 16 Oct 2015) Log Message: ----------- mtr, include upstream patch that adds transparent background support Modified Paths: -------------- branches/1.0/package/mtr/mtr-use-default-colors.patch Modified: branches/1.0/package/mtr/mtr-use-default-colors.patch =================================================================== --- branches/1.0/package/mtr/mtr-use-default-colors.patch 2015-10-16 15:06:12 UTC (rev 7273) +++ branches/1.0/package/mtr/mtr-use-default-colors.patch 2015-10-16 15:38:59 UTC (rev 7274) @@ -22,3 +22,36 @@ int i; for (i = 0; i < 8; i++) init_pair(i+1, i, 0); + +From 7571201cf7a3394e0dcd2b037aba1836089cc084 Mon Sep 17 00:00:00 2001 +From: Narthorn <nar...@gm...> +Date: Mon, 12 Oct 2015 13:24:57 +0200 +Subject: [PATCH] curses: Fix background transparency in terminal + +Patch comes from, and closes traviscross/mtr#72. +--- + curses.c | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/curses.c b/curses.c +index 02b7937..f95f5d1 100644 +--- a/curses.c ++++ b/curses.c +@@ -700,13 +700,15 @@ void mtr_curses_open(void) + initscr(); + raw(); + noecho(); ++ int bg_col = 0; + start_color(); + #ifdef HAVE_USE_DEFAULT_COLORS +- use_default_colors(); ++ if (use_default_colors() == OK) ++ bg_col = -1; + #endif + int i; + for (i = 0; i < 8; i++) +- init_pair(i+1, i, 0); ++ init_pair(i+1, i, bg_col); + + mtr_curses_init(); + mtr_curses_redraw(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |