Color Trigger

Post Reply
eraldo
Posts: 43
Joined: Sun Jul 12, 2009 1:25 am

Color Trigger

Post by eraldo »

I have mad a Color-Trigger which triggers on:
fg > bright white
bg > cyan

The trigger works fine, but...
it matches no no matter if the text is bold or not

I would only want it to capture the not bold white (fg) lines
or
make a it a filter and then further check for boldness...

Any idea how this can be done?

PS: Would it be a feature option to make a bold tickbox in addition to the color picker for color triggers?

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Color Trigger

Post by Heiko »

There is no such thing as color + bold in MUDs as all bold colors except the default color translate into light colors whereas non-bold colors translate into dark colors as ANSI only supports 8 colors instead of 16 - and most MUDs don't yet support xterm 256 color mode.
Underline & italics are practically not being used so that it wouldnt justify cluttering the trigger UI even more.

To answer your question directyl, an getTextFormat() function is on my todo list. This would let you test the text format of any selected text in any console.

eraldo
Posts: 43
Joined: Sun Jul 12, 2009 1:25 am

Re: Color Trigger

Post by eraldo »

non-bold colors translate into dark colors
That's what I thought at first too... but:
It does not matter whether I set the foreground color to light- or dark-white...
it triggers both types!

In this case I guess it is because of an error in the color trigger?

In any way... thank you!

Post Reply