world.colourtell / colournote

Posted by Deqitosv on Mon 01 Aug 2005 07:40 PM — 5 posts, 28,295 views.

USA #0
I'm probably insane for thinking this, but there is a config page for 'ANSI Colour'. On this page it states color names, and what they will look like. (see http://www.itgotdeleted.com/mush/ansicolour.jpg for details on what I mean).

However if I call world.colourtell or colournote, say... yellow, it comes up.. yellow.. No matter what I have the two yellows set to on this page.. Does that seem... correct?

It doesn't to me.. I'd love to go

world.colourtell "yellow", "", "This is Yellow"

and have it come up whatever custom colour is set on that page.. Just wondering if that's a bug, or by design.

Oh, and is there a plan for Americaneze support for the word 'color' as well as 'colour'?
Amended on Mon 01 Aug 2005 07:42 PM by Deqitosv
USA #1
My guess would be that it's by design. The colors in the config page are for ansi colors but I suspect the world.note functions use a different set of (much richer) color codes that don't go through the same translations.
USA #2
Yes, the ones in colournote are HTML colors, though even those are the limited set that Windows browsers all supported, not the full set that Unix and Linux tended to have. Maybe there should be an option to use ansiyellow, ansiblue, etc. to get the colors from the world settings? Though, I supposed technically that should be ansi0 -> ansi15, since they are not listed by color name and if someone alters them enough... then the normal names wouldn't match the colors anyway.
Australia Forum Administrator #3
Considering there are only 16 colours in the ANSI window you can configure, and 256**3 (16,777,216) colours that are possible by using ColourNote, it would be strange if 16 of those got mapped into different colours when they are displayed.

I suggest if you want to display with colours mapped to your colour scheme (for some reason) use AnsiNote which will respect your colour mappings.

http://www.gammon.com.au/scripts/doc.php?function=AnsiNote

Australia Forum Administrator #4
Of course, you can use MapColour to map one colour to another, which will affect all colours.

http://www.gammon.com.au/scripts/function.php?name=MapColour