[Circle] color

From: Gerald Wichmann (stile@ix.netcom.com)
Date: 11/26/96


i'm having problems getting the color snippet to work from the snippets
page.  The one where you use "&1" and that sort of thing to bring you
color.  The instructions for installing it were sparse so i sorta did what
i thought should be done.. this included the following:

modified comm.c as follows:
added parse_color function above the write_to_output function (and the
other function that came in the color.c file)
added a #include screen.h at the top of comm.c
modified the write_to_output function as outlined in the readme file..
threw the new screen.h file into the SRC directory

it compiles although with two warnings on the additions i made in the
write_to_output function.  it didn't like the line that is...

new_txt = parse_color(txt,t);

the actual errors are->

cl -c /nologo /I. /I\MSDEV\INCLUDE comm.c
comm.c(1063) : warning C4090: 'function' : different 'const' qualifiers
comm.c(1063) : warning C4024: 'parse_color' : different types for formal
and actual parameter 1
comm.c(342) : warning C4761: integral size mismatch in argument; conversion
	set lib=\MSDEV\LIB
	link /OUT:circle.exe /nologo /subsystem:console comm.obj act.comm.obj
act.informative.obj act.movement.obj act.item.obj  act.offensive.obj
act.other.obj act.social.obj act.wizard.obj ban.obj boards.obj  castle.obj
class.obj config.obj constants.obj db.obj fight.obj graph.obj handler.obj
house.obj interpreter.obj limits.obj magic.obj mail.obj mobact.obj
modify.obj  objsave.obj olc.obj shop.obj spec_assign.obj spec_procs.obj
spell_parser.obj  spells.obj utils.obj weather.obj random.obj wsock32.lib
	NMAKE /NOLOGO /S circle.exe
'circle.exe' is up-to-date

Ultimately the problem is i changed DO_SCORE in act.informative.c and put
in colors (&2 and &4 primarily).  The text is still normal colored and
shows the "&2" and "&4" wherever i inserted them.  i.e. it doesn't work..
this is running on a Win95 platform if it matter.

greatly appreciate any input!
| 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