From db1218712b39348f03925878963a24a7573ef83f Mon Sep 17 00:00:00 2001
From: Gregory P. Smith <greg@electricrain.com>
Date: Wed, 29 Nov 2006 23:47:38 -0800
Subject: ircII goes reverse color when switching colour to on in xterms

Bug-Debian: http://bugs.debian.org/61008
---
 include/config.h.dist |    4 +-
 include/screen.h      |    2 +
 source/screen.c       |   87 ++++++++++++++++++++++++++++++++++++++++++------
 3 files changed, 80 insertions(+), 13 deletions(-)

--- a/include/config.h.dist
+++ b/include/config.h.dist
@@ -111,7 +111,7 @@
 #define DEFAULT_ALWAYS_SPLIT_BIGGEST 1
 #define DEFAULT_AUTO_UNMARK_AWAY 0
 #define DEFAULT_AUTO_WHOWAS 0
-#define DEFAULT_BACKGROUND_COLOUR 1
+#define DEFAULT_BACKGROUND_COLOUR 16
 #define DEFAULT_BEEP 1
 #define DEFAULT_BEEP_MAX 3
 #define DEFAULT_BEEP_ON_MSG "NONE"
@@ -141,7 +141,7 @@
 #define DEFAULT_FLOOD_RATE 3
 #define DEFAULT_FLOOD_USERS 3
 #define DEFAULT_FLOOD_WARNING 0
-#define DEFAULT_FOREGROUND_COLOUR 15
+#define DEFAULT_FOREGROUND_COLOUR 16
 #define DEFAULT_FULL_STATUS_LINE 1
 #define DEFAULT_HELP_PAGER 1
 #define DEFAULT_HELP_PROMPT 1
--- a/include/screen.h
+++ b/include/screen.h
@@ -44,6 +44,8 @@
 #define WAIT_PROMPT_LINE	0x01
 #define WAIT_PROMPT_KEY		0x02
 
+#define COLOUR_DEFAULT	16
+
 /* Stuff for the screen/xterm junk */
 
 #define ST_NOTHING	-1
