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
➜ MUDs
➜ General
➜ Color Codes interpreted as visible characters
Color Codes interpreted as visible characters
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Jcet
USA (25 posts) Bio
|
Date
| Thu 07 Aug 2003 08:39 PM (UTC) Amended on Thu 07 Aug 2003 11:18 PM (UTC) by Jcet
|
Message
| On the MUD I, and a friend are coding(dbzreality.servegame.com:6212) we've ran into some trouble with color codes, and how clients interpret them(as visible characters).
Naturally we have a map system, and alot of other intricate stuff that has alot of color, so we need to know what is wrong. If you haven't figured out what I'm talkin about yet..
[0;33mJcet telepaths to you, "[1;33mooo[0;33m"
(59 Characters.)
That outputs(tags represent where the colors are, IE <brown> = [0;33m).
<brown>Jcet telepaths to you, "<yellow>ooo<brown>"
(without color)
Jcet telepaths to you, "ooo"
(28 Characters.)
My point is, most MUDs I've seen can color every other letter, have the client connected wrap at 80, and say an 80 character(actually visible) line, and it doesn't wrap.
So basicly lines as simple as the one above, the character length is alot longer than the actual visible character length is.
So if anyone has a solution to the problem, without having to do a custom wrapping function, contact me, or leave a message here, or if you know what the problem is, contact me, or leave a message here.
AIM SN: Jcet Shakaar.
Email: Jcet@ev1.net
Feel free to contact me there. |
-Jcet
See no good, hear no good, be no good, kill all good! | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Fri 08 Aug 2003 07:53 AM (UTC) |
Message
| What is the problem exactly? You want to wrap at the server end but are having trouble counting to 80 visible characters? Or the colours are not appearing correctly? Or the client wraps at the wrong place? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Jcet
USA (25 posts) Bio
|
Date
| Reply #2 on Fri 08 Aug 2003 10:10 AM (UTC) Amended on Fri 08 Aug 2003 10:11 AM (UTC) by Jcet
|
Message
| I have just found out the source of my problem, it is the autowrap feature for BYOND(Build Your Own Net Dream). It is made to ignore html tags, but not ansi color codes.
I was reading up in the forum, and found out about that. All signs led to it being how the color codes were interpreted(color codes adding to the 'visible' length, when not actually visible).
Sadly, I found out it is not easy fix-able.
Thanks Anyways.
P.S. MUSHclient owns. Feel free to close this thread. |
-Jcet
See no good, hear no good, be no good, kill all good! | 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.
11,648 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top