about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorjames <james@jamesbuntu.(none)>2012-04-04 09:51:30 +0100
committerjames <james@jamesbuntu.(none)>2012-04-04 09:51:30 +0100
commit8408a3ae2ba0add258800bfc38163c8fd54724cf (patch)
treeb326da9496e47595a99ddb6fb9d7a0f1803cb6ff
parentdab37236a2e51b8ef7e6181df302adef9eeba199 (diff)
downloadprofani-tty-8408a3ae2ba0add258800bfc38163c8fd54724cf.tar.gz
Transparent terminal support
-rw-r--r--windows.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/windows.c b/windows.c
index 3e20df6a..ad0c0fb1 100644
--- a/windows.c
+++ b/windows.c
@@ -65,16 +65,17 @@ void gui_init(void)
     keypad(stdscr, TRUE);
 
     if (has_colors()) {    
+        use_default_colors();
         start_color();
         
-        init_pair(1, COLOR_WHITE, COLOR_BLACK);
-        init_pair(2, COLOR_GREEN, COLOR_BLACK);
+        init_pair(1, COLOR_WHITE, -1);
+        init_pair(2, COLOR_GREEN, -1);
         init_pair(3, COLOR_WHITE, COLOR_BLUE);
         init_pair(4, COLOR_CYAN, COLOR_BLUE);
-        init_pair(5, COLOR_CYAN, COLOR_BLACK);
-        init_pair(6, COLOR_RED, COLOR_BLACK);
-        init_pair(7, COLOR_MAGENTA, COLOR_BLACK);
-        init_pair(8, COLOR_YELLOW, COLOR_BLACK);
+        init_pair(5, COLOR_CYAN, -1);
+        init_pair(6, COLOR_RED, -1);
+        init_pair(7, COLOR_MAGENTA, -1);
+        init_pair(8, COLOR_YELLOW, -1);
     }
 
     refresh();