Problems with MXP colour tags.

Posted by Ian Kirker on Sat 07 Aug 2004 11:18 PM — 3 posts, 14,921 views.

#0
I seem to have some problems with <color> tags resetting improperly upon encountering <send> tags.

I think the proper behaviour is that whatever the link colour is is supposed to last for the duration of the send tag, and then the colour tag is supposed to still persist afterwards, until a </color> tag is encountered. Instead, the colour is resetting immediately upon seeing the send tag, resulting in neither the link nor the text afterwards being coloured.

Is this proper?
Amended on Sat 07 Aug 2004 11:19 PM by Ian Kirker
Australia Forum Administrator #1
I cannot reproduce that. You can test this sort of thing by using the "debug simulated MUD input" window (Shift+Ctrl+F12). Try this:


\1B[6z<color fore=red back=white> test test <send>west</send> another test</color>


This has a <color> tag spanning a <send> tag, in my window the text is all coloured correctly.
#2
Okay, I think I may have worked this one out.

This sect of rather inane output below demonstrates the actual trouble I was having, which seemed to be that the ANSI Secure code .[6z resets the colours, rather than the send tag. Correct me (again) if I'm wrong, or if this is supposed to occur.


<color fore="#DDDD00">Wibble? \1B[6zWibble some more.<send href="wibble" PROMPT> Prompt to Wibble.</send> And\1B[5z the after-wibble.</color>\1B[4z<BR>>>