* status_line() now shows "new mail" only when there is new mail
authorMichael Hampton <io_error@uncensored.citadel.org>
Wed, 2 Oct 2002 04:07:27 +0000 (04:07 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Wed, 2 Oct 2002 04:07:27 +0000 (04:07 +0000)
citadel/ChangeLog
citadel/screen.c

index 7883ea6d408e9a122c80a7a75491f47c1f32b660..9b6ea2bcc7357112ea96a83a184c50234cb16c8a 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 601.16  2002/10/02 04:07:27  error
+ * status_line() now shows "new mail" only when there is new mail
+
  Revision 601.15  2002/10/01 04:00:13  ajc
  * html.c: speed improvement in html-to-ascii converter
  * messages.c: MASSIVE speed improvement in message output
@@ -4040,4 +4043,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
-
index c7c8550c39788ba52b6db61a99c27594cf5abfbd..eed34541ddf28124399a1ff2eb5e2582966a5eb6 100644 (file)
@@ -69,9 +69,9 @@ void status_line(const char *humannode, const char *bbs_city,
                        sln_printf("%s on ", room_name);
                if (humannode)
                        sln_printf("%s ", humannode);
-               if (newmailcount > -1) {
+               if (newmailcount > 0) {
                        waddch(statuswindow, ACS_VLINE);
-                       sln_printf(" Mail: %d new ", newmailcount);
+                       sln_printf(" %d new mail ", newmailcount);
                }
                sln_printf("\n");
        }
@@ -279,7 +279,7 @@ int sln_printf_if(char *fmt, ...)
 
 int scr_getc(int delay)
 {
-  char buf;
+  unsigned char buf;
 
 #ifdef HAVE_CURSES_H
        if (mainwindow) {
@@ -288,8 +288,8 @@ int scr_getc(int delay)
        }
 #endif
 
-  buf = '\0';
-  read (0, &buf, 1);
+       buf = '\0';
+       read (0, &buf, 1);
        return buf;
 }