mIRC Home    About    Download    Register    News    Help

Print Thread
#68170 16/01/04 05:44 PM
Joined: Oct 2003
Posts: 22
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Oct 2003
Posts: 22
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?


=-=-=-=-=-=-=
Do not meddle in dragons' affairs for you are crunchy and good with ketchup.
#68171 16/01/04 06:54 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
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?)


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#68172 17/01/04 12:01 AM
Joined: Oct 2003
Posts: 22
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Oct 2003
Posts: 22
thankyou. this is just what i need


=-=-=-=-=-=-=
Do not meddle in dragons' affairs for you are crunchy and good with ketchup.
#68173 17/01/04 12:07 AM
Joined: Oct 2003
Posts: 22
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Oct 2003
Posts: 22
i cant really complain, but it does lack processing for bold


=-=-=-=-=-=-=
Do not meddle in dragons' affairs for you are crunchy and good with ketchup.
#68174 17/01/04 06:27 PM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
Yeah it simply strips bold..


* cold edits his posts 24/7
#68175 17/01/04 07:14 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
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


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#68176 18/01/04 05:29 AM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
Such an weird text formatting code, heh.
The "bright" idea sounds interesting IMO though..

Last edited by cold; 18/01/04 05:31 AM.

* cold edits his posts 24/7
#68177 19/01/04 07:51 PM
Joined: Oct 2003
Posts: 22
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Oct 2003
Posts: 22
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


=-=-=-=-=-=-=
Do not meddle in dragons' affairs for you are crunchy and good with ketchup.

Link Copied to Clipboard