Colors
Seeing Colors
LaMush makes heavy use of ansi colors. We color code a good many things on the grid, and bold and colors are used in many places for emphasis.
Command | Usage |
@set me=ansi | Enables you to see colors on your MUSH screen. |
Unfortunately, setting colors sometimes makes things hard to read for people with various types of terminal programs or clients. If you are having trouble, for example, reading non-bold red on a black background, this probably has to do with your settings in your client or terminal program. These settings will often allow you to adjust what an ansi-color (like for example 'red') shows up as, and make it brighter or darker.
Writing Colors
ansi(<codes>,<string>[,<codes>,<string>[,…]]) | This allows you to highlight a string using ANSI terminal effects. The string is terminated with a "return to normal" code, and the codes are utilized in the order they are specified. |
%<color-code><text>%xn | The percent substitution %x<color code> can be used instead of ansi(), and is more efficient. The %xn (to return to normal) is not necessary, but if it is not specified the ansi color codes will continue to the end of the string. |
Example:
[ansi(rBf,Color!)]
is equivalent to:
%xr%xB%xfColor!%xn
Ansi Codes
Format
f | flash |
h | hilite |
i | inverse |
n | normal |
u | underline |
Colors
x | black foreground | X | black background |
r | red foreground | R | red background |
g | green foreground | G | green background |
y | yellow foreground | Y | yellow background |
b | blue foreground | B | blue background |
m | magenta foreground | M | magenta background |
c | cyan foreground | C | cyan background |
w | white foreground | W | white background |