Page 1 of 1

CMUD Window issue

Posted: 22 Feb 2015 07:50
by Dread
With the help of people here, I have used the gmcp trigger to echo comm text to another window named Converse. Can someone explain to me how to change the styling for the window? I cannot seem to change the font color, size, anything.


Thanks.

Re: CMUD Window issue

Posted: 22 Feb 2015 15:09
by Amorana
In the same trigger that you cap it in, you should include whatever you would like to do to the text. I'm not familiar with changing size of text, but you can, for example, change the color using #color.

So if your trigger says:
#capture 1 Converse

Just make it (for example):
#color blue
#capture 1 Converse

Re: CMUD Window issue

Posted: 22 Feb 2015 18:29
by Dread
This is the script text of what I am using:

#Class variables
DisplaySayInAnotherWindow = %gmcp.Comm.Channel.Message
#Class 0
Converse:#print {%ansi(bold,green)@DisplaySayInAnotherWindow%ansi(reset)}


Do you know what the possible options are in the parentheses containing (bold,green)? If I add another comma and put in a number, I get italicized and highlighted text.

Re: CMUD Window issue

Posted: 22 Feb 2015 21:51
by Einar
ansi

Syntax: %ansi(fore,back)
Related: %color, #COLOR, #PCOL, #CW

return the ANSI codes for the given colors. Can use a numeric value such as generated by the %color function.

You can also modify the fore and back attributes with the strings:
high 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

The words "default" and "reset" will reset the colour to its default value, as in the code ESC[0m.

Examples

#SHOW %ansi(high,red)Hello %ansi(blink,blue,white)World

displays "Hello" in bright red and "World" in blinking blue letters on a white background

#show %ansi(yellow)Hello %ansi(reset)World

displayes "Hello" in yellow and "World" in the default colour.

I hope that will help.