]> code.citadel.org Git - citadel.git/commitdiff
citadel.c: Added a splash of colour to the Wholist
authorArt Cancro <ajc@citadel.org>
Thu, 29 Oct 1998 01:21:41 +0000 (01:21 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 29 Oct 1998 01:21:41 +0000 (01:21 +0000)
citadel/ChangeLog
citadel/citadel.c

index 9b5f0d4a4e1943ae323677d3a87f65c206ce88ef..754cf1349b8e7cf33aea486490123000df0bd414 100644 (file)
@@ -1,3 +1,6 @@
+Wed Oct 28 20:20:14 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us
+       * citadel.c: Added a splash of colour to the Wholist
+
 1998-10-28 Nathan Bryant <bryant@cs.usm.maine.edu>
        * configure.in: added comments
        * mkinstalldirs: new file to be used for `make install'
index 51a00e6e87ca1fb2f3de1b4d8c155d43e0000b1c..29339d3dc573f95460f143543b9c8670674bf1bf 100644 (file)
@@ -744,7 +744,9 @@ void who_is_online(int longlist)
           timenow = atol(timestr);
        }
        else {
+       color(3);
        printf("FLG ###        User Name                 Room                 From host\n");
+       color(6);
        printf("--- --- ------------------------- -------------------- ------------------------\n");
                }
        serv_puts("RWHO");
@@ -773,9 +775,12 @@ void who_is_online(int longlist)
 
                                }
                        else {
-                       printf("%-3s %-3d %-25s %-20s %-24s\n",
-                               flags, extract_int(buf,0), username,
-                               roomname, fromhost);
+                               color(1); printf("%-3s ", flags);
+                               color(2); printf("%-3d ", extract_int(buf,0));
+                               color(3); printf("%-25s ", username);
+                               color(4); printf("%-20s ", roomname);
+                               color(5); printf("%-24s\n", fromhost);
+                               color(7);
                                }
                        }
                }