diff options
| author | erdgeist <> | 2013-03-20 11:25:42 +0000 |
|---|---|---|
| committer | erdgeist <> | 2013-03-20 11:25:42 +0000 |
| commit | 326fe73f57317922519a434656d965dde04fcce2 (patch) | |
| tree | a3b4afa5bd62c21e2fdd071f77135127ba86a454 | |
| parent | 42c4f4799a66f148166262b3993b2374045a9f24 (diff) | |
Make ncursesw the default
| -rwxr-xr-x | Makefile | 2 | ||||
| -rwxr-xr-x | vchat-ui.c | 10 |
2 files changed, 7 insertions, 5 deletions
| @@ -29,7 +29,7 @@ CFLAGS += $(OLDREADLINE) | |||
| 29 | ## the install prefix best is /usr/local | 29 | ## the install prefix best is /usr/local |
| 30 | PREFIX=/usr/local | 30 | PREFIX=/usr/local |
| 31 | 31 | ||
| 32 | LIBS = -lreadline -lncurses -lssl -lcrypto | 32 | LIBS = -lreadline -lncursesw -lssl -lcrypto |
| 33 | OBJS = vchat-client.o vchat-ui.o vchat-protocol.o vchat-user.o vchat-commands.o vchat-ssl.o | 33 | OBJS = vchat-client.o vchat-ui.o vchat-protocol.o vchat-user.o vchat-commands.o vchat-ssl.o |
| 34 | 34 | ||
| 35 | 35 | ||
| @@ -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); |
