mIRC Home    About    Download    Register    News    Help

Print Thread
Color codes at the end of a wrapped line #168100 03/01/07 07:45 PM
Joined: Sep 2003
Posts: 149
S
Stealth Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Sep 2003
Posts: 149
If a line has a color code in it, and is wrapped just before the beginning of a new color, the text on the next line is not processed correctly. Instead of appearing as the proper color, the color number is displayed where the new color is supposed to begin and the color is not changed.

For example:

How the line is supposed to appear:


How the line appears wrapped with the color change at the end of the line:


mIRC 6.21 - Win XP Pro (SP2) - 2.4 Ghz - 1 GB Mem
irc.x-tab.org
Re: Color codes at the end of a wrapped line [Re: Stealth] #168101 03/01/07 07:52 PM
Joined: Sep 2003
Posts: 149
S
Stealth Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Sep 2003
Posts: 149
On further investigation, it appears the character after the color needs to be the last on the line, and the color code needs to be part of a solid string of text.

Such as:
text<color>.

Such as:
text.

Such as:
Code:
Text $+ $chr(3) $+ 9.



Last edited by Stealth; 03/01/07 07:55 PM.

mIRC 6.21 - Win XP Pro (SP2) - 2.4 Ghz - 1 GB Mem
irc.x-tab.org
Re: Color codes at the end of a wrapped line [Re: Stealth] #168108 03/01/07 09:27 PM
Joined: Oct 2003
Posts: 313
S
Sais Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 313
Confirmed - and if you use $chr(3) $+ 09., you get 9. in colour 0. (I had wondered if it was a parsing issue with double characters)


Sais
Re: Color codes at the end of a wrapped line [Re: Stealth] #169390 22/01/07 03:07 PM
Joined: Dec 2002
Posts: 5,152
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,152
Thanks this has been fixed for the next version.