Documentation

color

Syntax: %color(fore,back)

converts a descriptive color into an attribute value. You can use the following special strings for certain effects:

hi highlight (select highlighted color)
bold bold text
rev reverse video
blink blinking text
under underlined text

Recognized color names:
black, blue, green, cyan, red, magenta, brown, gray, yellow, white

Examples:

#SHOW %color(red,magenta)
outputs 84

#COLOR %eval(%color(hi)+%color(blink)+%color(rev)+%color(blue,grey))


colors the last line in the output buffer in a flashy manner. You need the %eval in order to add up the colors into a single number.

Add comment

Login or register to post comments