[DGD]Switch colors On and Off
Matthew Jenkins
matt at esb.co.uk
Fri Nov 24 09:57:35 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.
This also has the advantage that you can have more than one set of colour
codes for different terminal types.
Matt
On Thu, 23 Nov 2000, Lord Lerkista wrote:
>
> Ok!! i see that the problem with the cursors only happens in my Telnet
> (BetterTelnet) jejeje using the telnet of windows and the CRT works normal!!
>
> Another question!! how can i make that the players can switch colors on and
> off??
>
> maybe using 2 files?? colors.h and nocolors.h??
>
> _____________________________________________________________________________________
> Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com
>
>
> List config page: http://list.imaginary.com/mailman/listinfo/dgd
>
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list