COLOR

Syntax: #CO attribute
#CO pattern attribute
Related: #HIGHLIGHT

If the pattern parameter is left out, this command changes the color of the last line received from the MUD. The color attribute can be a numeric attribute (compatible with the attribute values used by the text modes of DOS) or can be a combination of string values listed below, separated by commas.

If the pattern is included, a trigger is created to color any line matching the given pattern with the specified color.Color values:

black

0

blue

1

green

2

cyan

3

red

4

magenta

5

brown

6

gray

7

yellow

14

white

15

bold

128

to make a color brighter, add 8 to the base value. For example, 9 is bright blue. To change the background color, rather than the foreground, multiply the base value by 16. For example, to get a red background, use 4*16 or 64. To make the foreground font bold, add 128 to the value.

Thus, a bold white on a blue background would be 128 + 1*16 + 15 = 159.

COLOR examples

#CO red
changes the color of the last line received to red.
 
#CO bold,red
changes the last line to bold font and colors it red
 
#CO 159
set color of last line received to bold white on blue background.
 
#CO {tells the group} red
same as #ACTION {tells the group} {#CW red}. Whenever a string is received from the MUD containing the pattern tells the group, the phrase is colored red. Only the phrase is used because #COLOR secretly uses the #CW command. If you really want the entire line colored, you must create the trigger manually using:
#TRIGGER {tells the group} {#COLOR red}


Contents CLR COM