TeensyMud - 'A ruby mud server.'

Subject: Colors working depending on usage?
Subject: Colors working depending on usage?
Author: Massaria
Posted: 01/30/2006 10:53AM

I can't get my descs to change color.

"@set desc #3 This text should turn [COLOR blue] blue. [/color]"

shows me this when I look:
This text should turn [color blue]blue.

Also, when I look in a room with another player in it, the code seems to suggest that "X is here." should be cyan, but it's green like normal.

It's a bit mysterious, as I've used color succesfully by doing stuff like:
if (test_as <= as) && (test[i] == 65)
  report << "\e[0;36m" << test[i] << "\e[m"


Am I using the tags wrong... or perhaps my terminal/client (??/zmud) is messing something up?

Mass.

reply
Subject: Colors working depending on usage?
Author: Tyche
Posted: 01/30/2006 12:26PM

Massaria wrote:
> I can't get my descs to change color.
>
> "@set desc #3 This text should turn [COLOR blue] blue. [/color]"
>

The tags are defined in /vendor/bbcode.rb
Currently that would mean [color=blue] is correct as opposed to [color blue], regardless of what it says in TML documentation.

> Also, when I look in a room with another player in it, the code seems to suggest that "X is here." should be cyan, but it's green like normal.
>

I see cyan under telnet, mushclient and simplemu.

The bbcode.rb module will be going away as I discovered it's only half working. I built \lib\network\protocol\colorcodes.rb from the xterm color list, but it isn't yet used by anything.




reply