From 326fe73f57317922519a434656d965dde04fcce2 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Wed, 20 Mar 2013 11:25:42 +0000 Subject: Make ncursesw the default --- Makefile | 2 +- vchat-ui.c | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 81c4fbe..1796234 100755 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ CFLAGS += $(OLDREADLINE) ## the install prefix best is /usr/local PREFIX=/usr/local -LIBS = -lreadline -lncurses -lssl -lcrypto +LIBS = -lreadline -lncursesw -lssl -lcrypto OBJS = vchat-client.o vchat-ui.o vchat-protocol.o vchat-user.o vchat-commands.o vchat-ssl.o diff --git a/vchat-ui.c b/vchat-ui.c index 7873268..05b9572 100755 --- a/vchat-ui.c +++ b/vchat-ui.c @@ -1131,17 +1131,19 @@ initui (void) /* set colors for windows */ if (has_colors()) { - wattrset (console, COLOR_PAIR (9)); +// wattrset (console, COLOR_PAIR (9)); wattrset (input, COLOR_PAIR (0)); wbkgd (output, COLOR_PAIR(8)); - wbkgd (console, COLOR_PAIR (9)); +// wbkgd (console, COLOR_PAIR (9)); + wattron (console, A_REVERSE); wbkgd (channel, COLOR_PAIR (0)); wbkgd (input, COLOR_PAIR (0)); if (private) wbkgd (private, COLOR_PAIR (0)); if( topic ) { - wattrset (topic, COLOR_PAIR (9)); - wbkgd (topic, COLOR_PAIR (9)); + wattron (topic, A_REVERSE); +// wattrset (topic, COLOR_PAIR (9)); +// wbkgd (topic, COLOR_PAIR (9)); } } else { wattron (console, A_REVERSE); -- cgit v1.2.3