From acfffbe9045e9f72edd1eeee891f62a9fc45d3ad Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Thu, 3 Apr 2003 22:05:39 +0000 Subject: Compiles again, but TAB on start doesn't work perfect --- Makefile | 2 +- vchat-ui.c | 10 ++++++---- vchat-user.c | 16 ++++++++++++++++ 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index e4126ec..8ca460b 100755 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ CFLAGS = -Wall -Os #-g -ggdb ## use this line when you've got an readline before 4.(x|2) -#CFLAGS += -DOLDREADLINE +CFLAGS += -DOLDREADLINE ## you might need one or more of these: #CFLAGS += -I/usr/local/ssl/include -L/usr/local/ssl/lib diff --git a/vchat-ui.c b/vchat-ui.c index e0f3def..1b732c8 100755 --- a/vchat-ui.c +++ b/vchat-ui.c @@ -1089,16 +1089,18 @@ initui (void) /* set colors for windows */ if (has_colors()) { - wattrset (console, COLOR_PAIR (9)); +// wattrset (console, COLOR_PAIR (9)); wattrset (input, COLOR_PAIR (0)); - wattrset (topic, COLOR_PAIR (9)); +// wattrset (topic, COLOR_PAIR (9)); wbkgd (output, COLOR_PAIR(8)); - wbkgd (console, COLOR_PAIR (9)); +// wbkgd (console, COLOR_PAIR (9)); wbkgd (channel, COLOR_PAIR (0)); wbkgd (input, COLOR_PAIR (0)); + wattron (console, A_REVERSE); + wattron (topic, A_REVERSE); if (private) wbkgd (private, COLOR_PAIR (0)); - wbkgd (topic, COLOR_PAIR (9)); +// wbkgd (topic, COLOR_PAIR (9)); } else { wattron (console, A_REVERSE); wattron (topic, A_REVERSE); diff --git a/vchat-user.c b/vchat-user.c index 5f073a6..242480e 100755 --- a/vchat-user.c +++ b/vchat-user.c @@ -91,7 +91,9 @@ ul_add (unsigned char *name, int ignored) } } } +#ifndef OLDREADLINE rl_last_func = NULL; +#endif } /* delete user from userlist */ @@ -132,7 +134,9 @@ ul_del (unsigned char *name, int ignored) ltmp = tmp; tmp = tmp->next; } +#ifndef OLDREADLINE rl_last_func = NULL; +#endif } /* let user join a channel */ @@ -145,7 +149,9 @@ ul_join (unsigned char *name, int channel) ownjoin (channel); return; } else ul_moveuser(name,channel); +#ifndef OLDREADLINE rl_last_func = NULL; +#endif } user * @@ -196,7 +202,9 @@ ul_usertofront( user *who ) { who->next = nicks; nicks = who; } +#ifndef OLDREADLINE rl_last_func = NULL; +#endif } void @@ -229,7 +237,9 @@ ul_moveuser (unsigned char *name, int channel) { tmp->chan = channel; tmp->chan_valid = 1; } +#ifndef OLDREADLINE rl_last_func = NULL; +#endif } /* let user leave a channel */ @@ -250,7 +260,9 @@ ul_leave (unsigned char *name, int channel) tmp->chan_valid = 0; return; } +#ifndef OLDREADLINE rl_last_func = NULL; +#endif } /* let user change nick */ @@ -271,7 +283,9 @@ ul_nickchange (unsigned char *oldnick, unsigned char *newnick) tmp->nick = strdup (newnick); return; } +#ifndef OLDREADLINE rl_last_func = NULL; +#endif } /* clear userlist */ @@ -291,7 +305,9 @@ ul_clear (void) } /* mark list empty */ nicks = NULL; +#ifndef OLDREADLINE rl_last_func = NULL; +#endif } int ulnc_casenick(user *tmp, const unsigned char *text, int len, int value) { -- cgit v1.2.3