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