mIRC Home    About    Download    Register    News    Help

Print Thread
#68170 16/01/04 05:44 PM
D
DarthAndroid
DarthAndroid
D
i was disspointed to find out that mIRC didn't parse the ansi color control codes even though i checked the box in the options dialog. if i am correct, these are ansi color control codes. if they arent, then where can i find a list of the correct ansi codes that mirc supports and could the ansi codes i linked be added?

#68171 16/01/04 06:54 PM
Joined: Jan 2003
Posts: 2,125
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,125
mirc does parse ANSI codes, but only from incoming messages, not with /echo for example.

//.notice $me $chr(27) $+ [1mhello
result: -qwerty- hello

//echo -a $chr(27) $+ [1mhello
result: hello

You can always use $ansi2mirc() though: //echo -a $ansi2mirc($chr(27) $+ [1mhello)

A suggestion could be a new switch for /echo that makes it interpret ANSI codes (-o maybe?)

#68172 17/01/04 12:01 AM
D
DarthAndroid
DarthAndroid
D
thankyou. this is just what i need

#68173 17/01/04 12:07 AM
D
DarthAndroid
DarthAndroid
D
i cant really complain, but it does lack processing for bold

#68174 17/01/04 06:27 PM
Joined: Feb 2003
Posts: 806
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 806
Yeah it simply strips bold..

#68175 17/01/04 07:14 PM
Joined: Jan 2003
Posts: 2,125
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,125
That's because 1m is also (?) used for "bright", at least that's what I gathered from a quick google search. Examples:

//echo -a $ansi2mirc($chr(27) $+ [32mblah)
prints "blah" in green

//echo -a $ansi2mirc($chr(27) $+ [1;32mblah)
prints "blah" in bright green

#68176 18/01/04 05:29 AM
Joined: Feb 2003
Posts: 806
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 806
Such an weird text formatting code, heh.
The "bright" idea sounds interesting IMO though..

Last edited by cold; 18/01/04 05:31 AM.
#68177 19/01/04 07:51 PM
D
DarthAndroid
DarthAndroid
D
ah, well, it doesnt strip bold, it doesnt al ways process it correctly
//echo -a $ansi2mirc($chr(27) $+ [1;32mblah)
is bright green
//echo -a $ansi2mirc($chr(27) $+ [32;1mblah)
is green.
i might just make my own parser...it would definately look better


Link Copied to Clipboard