On Thu, 12 Dec 1996, Michael M. McLoughlin wrote: > you sure about any? I can't seem to get color in the prompt with the > easy-color patch, I haven't tried the other one yet tho. No, not any :P There are a few situations where color isn't parsed.. the color is only parsed when the output i sput through the buffers and the write_to_output function if I remember correctly. The prompt code uses write_to_descriptor() to output the stuff, and this particulat function simply writes the text as it is DIRECTLY and UNBUFFERED(I think) to the player in the other end (the socket). Thus to enable color in the prompt code, you might want to parse the buffer with the text created through the parse_color function (or whatever it's called), and that way get the color codes interpreted/parsed, and THEN use the write_to_descriptor function to keep things tidy, and at the same time parse the colorcodes.. Mmmm, worked for me, but then again, I'm just a hacker *g* I don't have the code handy, and it's 5am, so if what I'm writing is a tad dim, thats the reason... it should give you an outline of what you need to do to make it work though. Regards, Con. d. -- Rasmus Rønlev DOEK'94 WWW: http://www.econ.cbs.dk/people/raro94ab Student instructor MUD: exiled.mud.circlemud.org 5000 199.199.16.100 5000 Student, B.Sc in Computer Science and Business Administration. +-----------------------------------------------------------+ | 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