[DGD]Switch colors On and Off

Risto Karjalainen risto.karjalainen at pp1.inet.fi
Fri Nov 24 10:04:41 CET 2000


| I solved this by adding hooks into user->catch_tell (I use 2.4.5 mudlib)
| It calls the player->creplace(str) function to replace certain colour
| codes (such things as ^R for red, ^G for green etc) with the proper ansi
| sequences, or with nothing at all if no colour is required.

Isn't that terribly slow?! I tried this too on my codebase but I started
getting Too long evaluations more than I could handle so I gave up the idea.
Maybe my code was a bit too unoptimized and hack. Anyway, I'm curious how
you handle this.

Regards,
Risto Karjalainen



List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list