* Handle full-screen curses stuff
*/
-#include "sysdep.h"
-#include "screen.h"
+#include <stdlib.h>
+#include <unistd.h>
#include <stdio.h>
#include <signal.h>
#include <string.h>
#include <stdarg.h>
-#include <unistd.h>
#include <sys/types.h>
+#include "sysdep.h"
#ifdef HAVE_VW_PRINTW
#define _vwprintw vw_printw
#else
#include "citadel_ipc.h"
#include "citadel_decls.h"
#include "commands.h"
+#include "screen.h"
#if defined(HAVE_CURSES_H) && !defined(DISABLE_CURSES)
static SCREEN *myscreen = NULL;
* status_line() is a convenience function for writing a "typical"
* status line to the window.
*/
-void status_line(const char *humannode, const char *bbs_city,
+void status_line(const char *humannode, const char *site_location,
const char *room_name, int secure, int newmailcount)
{
#if defined(HAVE_CURSES_H) && !defined(DISABLE_CURSES)
/*
* this is not supposed to be called from a signal handler.
*/
-int scr_set_windowsize()
+int scr_set_windowsize(CtdlIPC* ipc)
{
#if defined(HAVE_CURSES_H) && !defined(DISABLE_CURSES)
if (mainwindow && caught_sigwinch) {
wresize(statuswindow, 1, screenwidth);
#endif
mvwin(statuswindow, screenheight, 0);
- status_line(serv_info.serv_humannode, serv_info.serv_bbs_city,
- room_name, secure, -1);
+ status_line(ipc->ServInfo.humannode, ipc->ServInfo.site_location,
+ room_name, secure, -1);
wnoutrefresh(mainwindow);
wnoutrefresh(statuswindow);
doupdate();