]> code.citadel.org Git - citadel.git/blobdiff - citadel/screen.h
* Variable names, comments, documentation, etc... removed the acronym 'BBS'
[citadel.git] / citadel / screen.h
index c7dfc8ea48262269580c49d1d7b9a293593aa502..02975030b88ce12470832fcddbfd9908f31e935a 100644 (file)
@@ -1,6 +1,16 @@
 /* $Id$ */
 
-void status_line(const char *humannode, const char *bbs_city,
+/* client code may need the ERR define: */
+
+#ifndef DISABLE_CURSES
+#ifdef HAVE_NCURSES_H
+#include <ncurses.h>
+#elif defined(HAVE_CURSES_H)
+#include <curses.h>
+#endif
+#endif
+
+void status_line(const char *humannode, const char *site_location,
                 const char *room_name, int secure, int newmailcount);
 void screen_new(void);
 void screen_delete(void);
@@ -10,13 +20,22 @@ int scr_printf(char *fmt, ...);
 int err_printf(char *fmt, ...);
 int sln_printf(char *fmt, ...);
 int sln_printf_if(char *fmt, ...);
-int scr_getc(void);
+
+#define SCR_NOBLOCK 0
+#define SCR_BLOCK -1
+int scr_getc(int delay);
+
 int scr_putc(int c);
 int sln_putc(int c);
 int scr_color(int colornum);
 void scr_flush(void);
 void err_flush(void);
 void sln_flush(void);
-int scr_set_windowsize(void);
+int scr_set_windowsize(CtdlIPC* ipc);
 void windows_new(void);
 void windows_delete(void);
+int scr_blockread(void);
+int is_curses_enabled(void);
+RETSIGTYPE scr_winch(int signum);
+void wait_indicator(int state);
+void ctdl_beep(void);