]> code.citadel.org Git - citadel.git/commitdiff
* citadel.c: when ansi_color=user, enable color at login, so Lobby> posts
authorMichael Hampton <io_error@uncensored.citadel.org>
Wed, 11 Oct 2000 22:55:25 +0000 (22:55 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Wed, 11 Oct 2000 22:55:25 +0000 (22:55 +0000)
  displayed at login are in color

citadel/ChangeLog
citadel/citadel.c

index 7fcdd91967bb77af652204ad85323dceb755517c..395a84617579a17da977cae38f0f82d7a5cfe264 100644 (file)
@@ -1,4 +1,8 @@
  $Log$
+ Revision 573.12  2000/10/11 22:55:25  error
+ * citadel.c: when ansi_color=user, enable color at login, so Lobby> posts
+   displayed at login are in color
+
  Revision 573.11  2000/10/11 22:47:51  error
  * domain.c: getmx() returns hostname as MX if no MX records found a la RFC 974
 
@@ -2089,4 +2093,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 18e3eb64f7c79b2c9d2c0516f74a25f7708ec115..43f03f640e8c151ef56c3fba7f921c9b7da440bc 100644 (file)
@@ -94,6 +94,8 @@ char curr_floor = 0;          /* number of current floor */
 char floorlist[128][256];      /* names of floors */
 char express_msgs = 0;         /* express messages waiting! */
 
+extern int rc_ansi_color;      /* ansi color value from citadel.rc */
+
 /*
  * here is our 'clean up gracefully and exit' routine
  */
@@ -1039,8 +1041,16 @@ NEWUSR:  if (strlen(rc_password) == 0) {
 
        enter_config(1);
 
+PWOK:
+       /* Switch color support on or off if we're in user mode */
+       if (rc_ansi_color == 3) {
+               if (userflags & US_COLOR)
+                       enable_color = 1;
+               else
+                       enable_color = 0;
+       }
 
-PWOK:  printf("%s\nAccess level: %d (%s)\nUser #%ld / Call #%d\n",
+       printf("%s\nAccess level: %d (%s)\nUser #%ld / Call #%d\n",
               fullname, axlevel, axdefs[(int) axlevel],
               usernum, timescalled);