Mixing MXP tags and ANSI codes

Posted by Nick Gammon on Wed 06 Jun 2001 05:06 AM — 1 posts, 6,533 views.

Australia Forum Administrator #0
When using MXP in MUSHclient you can mix ANSI escape sequences (for colours, bold, italic, underline etc.) and MXP codes which do the same thing, however this is not recommended.

The difference between ANSI codes and MXP tags is that MXP tags "nest", whereas ANSI codes are like "commands" that affect all text following.

For example:


Some text (esc)[31m This is red (esc)0m This is white on black.

Some text <color red> This is red </color> Back to where we were.


The example using MXP saves and restores the previous colour. Using ANSI codes there is no way of doing that.

Also, MXP allows a richer set of colours, eg.



<color fore=darkorange back=honeydew>

... and RGB colour codes ...

<color fore="#7FFFD4" back="#00008B">