]> code.citadel.org Git - citadel.git/blobdiff - citadel/textclient/screen.h
ctdl_getline() is a mess. continued cleaning it up
[citadel.git] / citadel / textclient / screen.h
index 02975030b88ce12470832fcddbfd9908f31e935a..d720b2514ae984040dbcbaf4f4db98be8e8b51f7 100644 (file)
@@ -1,41 +1,32 @@
-/* $Id$ */
+/*
+ * client code may need the ERR define
+ *
+ * Copyright (c) 1987-2012 by the citadel.org team
+ *
+ *  This program is open source software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License version 3.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ */
 
-/* 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);
-int screen_set(void);
-int screen_reset(void);
 int scr_printf(char *fmt, ...);
-int err_printf(char *fmt, ...);
-int sln_printf(char *fmt, ...);
-int sln_printf_if(char *fmt, ...);
-
 #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(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);
+void scr_wait_indicator(int);
+extern char status_line[];
+extern void check_screen_dims(void);
+extern void ctdl_getline(char *string, int lim);
+
+extern int screenwidth;
+extern int screenheight;