summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2013-03-20 11:25:42 +0000
committererdgeist <>2013-03-20 11:25:42 +0000
commit326fe73f57317922519a434656d965dde04fcce2 (patch)
treea3b4afa5bd62c21e2fdd071f77135127ba86a454
parent42c4f4799a66f148166262b3993b2374045a9f24 (diff)
Make ncursesw the default
-rwxr-xr-xMakefile2
-rwxr-xr-xvchat-ui.c10
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)
29## the install prefix best is /usr/local 29## the install prefix best is /usr/local
30PREFIX=/usr/local 30PREFIX=/usr/local
31 31
32LIBS = -lreadline -lncurses -lssl -lcrypto 32LIBS = -lreadline -lncursesw -lssl -lcrypto
33OBJS = vchat-client.o vchat-ui.o vchat-protocol.o vchat-user.o vchat-commands.o vchat-ssl.o 33OBJS = vchat-client.o vchat-ui.o vchat-protocol.o vchat-user.o vchat-commands.o vchat-ssl.o
34 34
35 35
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)
1131 1131
1132 /* set colors for windows */ 1132 /* set colors for windows */
1133 if (has_colors()) { 1133 if (has_colors()) {
1134 wattrset (console, COLOR_PAIR (9)); 1134// wattrset (console, COLOR_PAIR (9));
1135 wattrset (input, COLOR_PAIR (0)); 1135 wattrset (input, COLOR_PAIR (0));
1136 wbkgd (output, COLOR_PAIR(8)); 1136 wbkgd (output, COLOR_PAIR(8));
1137 wbkgd (console, COLOR_PAIR (9)); 1137// wbkgd (console, COLOR_PAIR (9));
1138 wattron (console, A_REVERSE);
1138 wbkgd (channel, COLOR_PAIR (0)); 1139 wbkgd (channel, COLOR_PAIR (0));
1139 wbkgd (input, COLOR_PAIR (0)); 1140 wbkgd (input, COLOR_PAIR (0));
1140 if (private) 1141 if (private)
1141 wbkgd (private, COLOR_PAIR (0)); 1142 wbkgd (private, COLOR_PAIR (0));
1142 if( topic ) { 1143 if( topic ) {
1143 wattrset (topic, COLOR_PAIR (9)); 1144 wattron (topic, A_REVERSE);
1144 wbkgd (topic, COLOR_PAIR (9)); 1145// wattrset (topic, COLOR_PAIR (9));
1146// wbkgd (topic, COLOR_PAIR (9));
1145 } 1147 }
1146 } else { 1148 } else {
1147 wattron (console, A_REVERSE); 1149 wattron (console, A_REVERSE);