[DGD] Re: ansi colours

Erwin Harte harte at is-here.com
Tue Mar 30 21:44:45 CEST 2004


On Tue, Mar 30, 2004 at 07:38:18PM +0000, Robert Forshaw wrote:
> >From: "Kirk Smith" <ksmith at illiji.net>
> >The patch is for DGD 1.1 and fails on newer versions. You can read it an
> >discover how to do it manually, or just read up here:
> >http://phantasmal.sourceforge.net/DGD/DGD_Config.html#ANSIColor
> 
> Ok, I have applied the changes by hand. I've added a define for the ESC 
> character, and changed the if statement so that it lets it through. 
> However, when trying to make the MUD print back some coloured text to me it 
> still doesn't do it right:
> 
> code this_user() -> tell("\e[0;34mTESTING")
[...]

Have you considered the possibility that the \e is not an escape
supported by LPC and it really _is_ an 'e' that you send to the
client?

    > @code "\e"[0]
    $28 = 101

This is what you want, however:

    > @code "\033"[0]
    $29 = 27

Hope that helps,

\033[36mErwin\033[0m.
-- 
Erwin Harte <harte at is-here.com>
_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list