On Sun, 19 Jan 1997, Anthony J rye wrote: > I had 2 questions > Q1: for easy-color snippet how do i change the numbers to letters? > Example: 01=dark red (what i want it to do) r=dark read etc... In which case, why use easy color, instead of just using my new_prompt patches color interpreter, which is alreadys set up to use letters. The codes are easy: &x/&X - black/dark gray &r/&R - red/bright red &g/&G - green/bright green &y/&Y - brown/yellow &b/&B - dark blue/blue &m/&M - magenta/hot pink &c/&C - cyan/bright cyan &w/&W - gray/white Copy the is_color() and interpret_colors() over, and change SEND_TO_Q() as follows: #define SEND_TO_Q(txt, d) \ write_to_output(interpret_colors((txt), ((d)->character && \ PRF_FLAGGED((d)->character, PRF_COLOR_2))), (d)) Wherever SEND_TO_Q is used, you can then use the color codes. Remember you can always remove patches with: patch -R < (whatever the patch file is) -- Daniel Koepke dkoepke@california.com Forgive me father, for I am sin. +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST