$ansi2mirc » History » Version 2
Per Amundsen, 02/16/2023 05:15 PM
| 1 | 1 | Per Amundsen | _Added in 4.0_ |
|---|---|---|---|
| 2 | |||
| 3 | *$ansi2mirc(ansi text)* |
||
| 4 | |||
| 5 | Converts "ANSI control codes":https://en.wikipedia.org/wiki/ANSI_escape_code into AdiIRC-supported [[Formatting Text|control codes]], including colors and font styles. |
||
| 6 | |||
| 7 | *Parameters* |
||
| 8 | |||
| 9 | 2 | Per Amundsen | table(ktable). |
| 10 | |*Parameter*|*Description*| |
||
| 11 | 1 | Per Amundsen | ansi . The text containing ANSI control codes to convert. |
| 12 | |||
| 13 | *Example* |
||
| 14 | |||
| 15 | <pre> |
||
| 16 | //echo -ag $ansi2mirc($chr(27) $+ [1;44;33mThis text is colored) |
||
| 17 | </pre> |