#ifdef HAVE_OPENSSL
arg_encrypt = RC_DEFAULT;
#endif
-#if defined(HAVE_CURSES_H) && !defined(DISABLE_CURSES)
- arg_screen = RC_DEFAULT;
-#endif
/*
* Handle command line options as if we were called like /bin/login
return 1;
#endif
}
- if (!strcmp(argv[a], "-s")) {
-#if defined(HAVE_CURSES_H) && !defined(DISABLE_CURSES)
- arg_screen = RC_NO;
-#endif
- argc = shift(argc, argv, a, 1);
- }
- if (!strcmp(argv[a], "-S")) {
-#if defined(HAVE_CURSES_H) && !defined(DISABLE_CURSES)
- arg_screen = RC_YES;
-#endif
- argc = shift(argc, argv, a, 1);
- }
if (!strcmp(argv[a], "-p")) {
struct stat st;
scr_printf("Connected to %s [%s].\n", ipc->ip_hostname, ipc->ip_address);
}
-#if defined(HAVE_CURSES_H) && !defined(DISABLE_CURSES)
- CtdlIPC_SetNetworkStatusCallback(ipc, wait_indicator);
-#endif
ipc_for_signal_handlers = ipc; /* KLUDGE cover your eyes */
CtdlIPC_chat_recv(ipc, aaa);
a = 0;
}
*/
-
-#ifndef DISABLE_CURSES
-#if defined(HAVE_CURSES_H) || defined(HAVE_NCURSES_H)
- if (a == ERR) {
- logoff(NULL, 3);
- }
-#endif
-#endif
-
} while (a == 0);
return (a);
}
strcpy(rc_gotmail_cmd, "");
#ifdef HAVE_OPENSSL
rc_encrypt = RC_DEFAULT;
-#endif
-#if defined(HAVE_CURSES_H) && !defined(DISABLE_CURSES)
- rc_screen = RC_DEFAULT;
#endif
rc_alt_semantics = 0;
#endif
}
-#if defined(HAVE_CURSES_H) && !defined(DISABLE_CURSES)
- if (!strncasecmp(buf, "fullscreen=", 11)) {
- if (!strcasecmp(&buf[11], "yes"))
- rc_screen = RC_YES;
- else if (!strcasecmp(&buf[11], "no"))
- rc_screen = RC_NO;
- }
-#endif
-
if (!strncasecmp(buf, "editor=", 7))
strcpy(editor_paths[0], &buf[7]);
current_color = colornum;
if (enable_color) {
-#if defined(HAVE_CURSES_H) && !defined(DISABLE_CURSES)
- if (scr_color(colornum))
- return;
-#endif
/* When switching to dim white, actually output an 'original
* pair' sequence -- this looks better on black-on-white
* terminals. - Changed to ORIGINAL_PAIR as this actually
}
-/*
- * scr_color() sets the window color for mainwindow
- */
-int scr_color(int colornum)
-{
- return 0;
-}
-
-
void scr_flush(void)
{
fflush(stdout);
int screen_set(void);
int screen_reset(void);
int scr_printf(char *fmt, ...);
+int scr_set_windowsize(CtdlIPC* ipc);
#define SCR_NOBLOCK 0
#define SCR_BLOCK -1
int scr_getc(int delay);
int scr_putc(int c);
-int scr_color(int colornum);
void scr_flush(void);
-int scr_set_windowsize(CtdlIPC* ipc);
int scr_blockread(void);
RETSIGTYPE scr_winch(int signum);
void wait_indicator(int state);