diff options
author | Narthorn | 2015-10-12 14:02:06 +0200 |
---|---|---|
committer | Narthorn | 2015-10-12 14:02:25 +0200 |
commit | 29a2078700c95f48c630a6469328b9238742a03c (patch) | |
tree | d5dcda56a912ac534803fa21851b86272b9cf4a4 /0001-curses-Fix-background-transparency-in-terminal.patch | |
download | aur-29a2078700c95f48c630a6469328b9238742a03c.tar.gz |
Initial PKGBUILD and .SRCINFO
Diffstat (limited to '0001-curses-Fix-background-transparency-in-terminal.patch')
-rw-r--r-- | 0001-curses-Fix-background-transparency-in-terminal.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/0001-curses-Fix-background-transparency-in-terminal.patch b/0001-curses-Fix-background-transparency-in-terminal.patch new file mode 100644 index 000000000000..66bc6d0ee4f7 --- /dev/null +++ b/0001-curses-Fix-background-transparency-in-terminal.patch @@ -0,0 +1,35 @@ +From 03aebf920ea002cda0d1621adea6ea8e71eed1d1 Mon Sep 17 00:00:00 2001 +From: Narthorn <narthorn@gmail.com> +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(); +-- +2.6.1 + |