EDITED BY BRANDON ALLEN for circlemud 3.1

as well as 1 change in here i added a  #include "sysdep.h" on the top
of color.c to remove a few warnings i was getting. this may be a problem
in MSVC6 ebcause whenever i did it on cygwin it didnt error however
the extra line caused to problem in cygwin


HOW DO I DO IT?

1. Add the following lines to comm.c:

(in header section)
/* EZ COLOR */
#include "screen.h"

(in extern section)

/* EZ COLOR */
void proc_color(char *inbuf, int color);


In the function process_output (comm.c), look for the lines
/* add the extra CRLF if the person isn't in compact mode */
if (!t->connected.......  blah blah blah

and add these lines:

if(t->character)
   proc_color(i, (clr(t->character, C_NRM)));


(Since almost every one of the old CCRED() or whatever color macros used
C_NRM anyway, this is a blanket check -- if your color is NRM or above,
you get it, if not, you don't.  You can change C_NRM to complete or
sparse or whatever other value you want.)


Those lines should come just after

  /*
   * now, send the output.  If this is an 'interruption', use the prepended
   * CRLF, otherwise send the straight output sans CRLF.
   */

(Changed here, the whole process_output has been re worded / changed so i
put these comments as a reff point)



2. Add "color.o" to the object list in the Makefile (after comm.o) and after
the comm.o dependencies lines add this:

color.o: color.c conf.h
	$(CC) -c $(CFLAGS) color.c

