Re: [Code][Newbie?] Adding COLOR To Speech

From: Daniel Koepke (
Date: 01/04/97

On Sun, 5 Jan 1997, Nic Suzor wrote:

> get the easy-colour patch
> say This is the color \c08RED\c00. works fine :)

...or get my improved prompt code, change comm.h as follows:

  char *interpret_colors(char *, bool);

  #define SEND_TO_Q(txt, d) \
    write_to_output(interpret_colors((txt), ((d)->character &&
      PRF_FLAGGED((d)->character, PRF_COLOR_2))), (d))

Then color is handled like:

  > say &f&RFlashing Bold Red&f&w

The '&f' toggles flashing, '&R' is bright red ['&r' is normal red],
and '&w' is normal white (gray).

Daniel Koepke
Forgive me father, for I am sin.

| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   |

This archive was generated by hypermail 2b30 : 12/18/00 PST