]> code.citadel.org Git - citadel.git/blobdiff - citadel/textclient/screen.c
Removed err_* and sln_* functions; replaced all calls with scr_* functions.
[citadel.git] / citadel / textclient / screen.c
index dc925c12e3c035664addb2f5e78ecd9a726fabe0..dfc38a4ab943fb12c386aaa26f93f70633a3db84 100644 (file)
@@ -48,10 +48,11 @@ void screen_new(void)
  */
 void screen_delete(void)
 {
-       windows_delete();
        screen_reset();
 }
 
+
+
 /*
  * Beep.
  */
@@ -84,36 +85,6 @@ int screen_reset(void)
  * scr_printf() outputs to the terminal
  */
 int scr_printf(char *fmt, ...)
-{
-       va_list ap;
-       register int retval;
-
-       va_start(ap, fmt);
-       retval = vprintf(fmt, ap);
-       va_end(ap);
-       return retval;
-}
-
-
-/*
- * err_printf() outputs to error status window (or stderr if not in curses)
- */
-int err_printf(char *fmt, ...)
-{
-       va_list ap;
-       register int retval;
-
-       va_start(ap, fmt);
-       retval = vfprintf(stderr, fmt, ap);
-       va_end(ap);
-       return retval;
-}
-
-
-/*
- * sln_printf() outputs to error status window (or stderr if not in curses)
- */
-int sln_printf(char *fmt, ...)
 {
        va_list ap;
        register int retval;
@@ -125,15 +96,8 @@ int sln_printf(char *fmt, ...)
 
 
 /*
- * sln_printf_if() outputs to status window, no output if not in curses
+ * Read one character from the terminal
  */
-int sln_printf_if(char *fmt, ...)
-{
-       register int retval = 1;
-       return retval;
-}
-
-
 int scr_getc(int delay)
 {
        unsigned char buf;
@@ -144,7 +108,7 @@ int scr_getc(int delay)
 }
 
 /*
- * scr_putc() outputs a single character
+ * Output one character to the terminal
  */
 int scr_putc(int c)
 {
@@ -154,18 +118,6 @@ int scr_putc(int c)
 }
 
 
-int sln_putc(int c)
-{
-       return putc(c, stdout);
-}
-
-
-int sln_putc_if(int c)
-{
-       return 1;
-}
-
-
 /*
  * scr_color() sets the window color for mainwindow
  */
@@ -181,17 +133,6 @@ void scr_flush(void)
 }
 
 
-void err_flush(void)
-{
-               fflush(stderr);
-}
-
-
-void sln_flush(void)
-{
-       fflush(stdout);
-}
-
 static volatile int caught_sigwinch = 0;
 
 /*
@@ -216,19 +157,3 @@ RETSIGTYPE scr_winch(int signum)
        check_screen_dims();
        signal(SIGWINCH, scr_winch);
 }
-
-
-/*
- * Initialize the window(s) we will be using.
- */
-void windows_new(void)
-{
-}
-
-
-/*
- * Deinitialize the window(s) we were using (at exit).
- */
-void windows_delete(void)
-{
-}