]> code.citadel.org Git - citadel.git/blob - citadel/screen.h
support window resizing in curses mode
[citadel.git] / citadel / screen.h
1 /* $Id$ */
2
3 /* client code may need the ERR define: */
4
5 #ifdef HAVE_NCURSES_H
6 #include <ncurses.h>
7 #elif defined(HAVE_CURSES_H)
8 #include <curses.h>
9 #endif
10
11 void status_line(const char *humannode, const char *bbs_city,
12                  const char *room_name, int secure, int newmailcount);
13 void screen_new(void);
14 void screen_delete(void);
15 int screen_set(void);
16 int screen_reset(void);
17 int scr_printf(char *fmt, ...);
18 int err_printf(char *fmt, ...);
19 int sln_printf(char *fmt, ...);
20 int sln_printf_if(char *fmt, ...);
21
22 #define SCR_NOBLOCK 0
23 #define SCR_BLOCK -1
24 int scr_getc(int delay);
25
26 int scr_putc(int c);
27 int sln_putc(int c);
28 int scr_color(int colornum);
29 void scr_flush(void);
30 void err_flush(void);
31 void sln_flush(void);
32 int scr_set_windowsize(void);
33 void windows_new(void);
34 void windows_delete(void);
35 int scr_blockread(void);
36 int is_curses_enabled(void);
37 RETSIGTYPE scr_winch(int signum);