[DGD]Colour?

Matthew Jenkins matt at esb.co.uk
Tue Jun 12 12:55:39 CEST 2001


I have.  overlord.dungeon.ws 2000

I have a routine in there which ties into the send_message function and
replaces certain character combinations with the relevant ansi control
codes.  Makes it much easier to put colour in there, and can even be used
by players when speaking etc.

The inspiration for the codes I used came from many years using PG+
talkers.

I can give you a copy if the code if you like...

Flibs

On Mon, 11 Jun 2001, mtaylor wrote:

> I think I vaguely understand ;)
> 
> Sorry my knowledge of LPC and DGD is still quite limited. I understand the
> easy stuff but I have a bit more trouble when it comes to driver stuff.
> 
> So what you are saying is to implement colours (and stuff like bold?) I need
> to send escape characters to the driver?
> 
> Is that like the "\n" for a line return? If so does anyone know what the
> escape commands are for colours etc. Or can anyone point me in the right
> direction to find out about them?
> 
> Does anyone actually have a Mud running with ansi colour?
> 
> Um ... Think that's it. Thanks for the help :)
> 
> Matt
> 
> 
> >> ===== Original Message From Nico Lammers <n.lammers at home.nl> =====
> >>> There is a patch for DGD1.1 which will also work for DGD1.2, although
> >>> you need to apply it manually. The 'old' patch can be found here:
> >>> 
> >>> ftp://ftp.imaginary.com/pub/LPC/servers/DGD/pkg/1.1/
> >>> 
> >>> You will also need to add some things to the lib so that it will send a
> >>> string to the driver that is to be translated to an escape character. Or
> >>> something like that.. never did that myself.. I only patched both DGD 1.1
> >>> and DGD 1.2 and the code in the lib worked ;)
> >>> 
> >>> -- Nico Lammers
> > 
> > On second thought.. the patch is applied to remove the filter for escape
> > characters I think. So basically you need to send escape codes to the driver
> > from within the mudlib. I think you can alter the send_message() to that end.
> > *is still unsure*
> > 
> > -- Nico Lammers
> > 
> > 
> > List config page:  http://list.imaginary.com/mailman/listinfo/dgd
> 
> 
> 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