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.
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.