Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ MXP and Pueblo
➜ Mixing MXP tags and ANSI codes
|
Mixing MXP tags and ANSI codes
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Wed 06 Jun 2001 05:06 AM (UTC) |
| Message
| 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">
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
6,299 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top