mIRC Homepage
Posted By: Bejito motd acsii art display - 07/04/07 12:02 AM
Hi,

Many irc server use an acsii art on motd.

mIRC don't display motd correctly, he remove spaces. If I test witch an other irc client as BitchX it's ok and I can see ACSII art on Message Of The Day.
Posted By: Kardafol Re: motd acsii art display - 07/04/07 12:06 AM
mIRC strips spaces (2 spaces = 1, 3 spaces = 1, etc) sadly, and you'll have to use the ascii character 160 (hard/solid space) or two CTRL + B codes (ascii character 2) for mIRC to keep it aligned.
Posted By: Bejito Re: motd acsii art display - 07/04/07 12:20 AM
Yes on mIRC script we can use $chr(160) but ircd.motd use acsii spaces
Posted By: Kardafol Re: motd acsii art display - 07/04/07 12:27 AM
You can replace the spaces in your ascii art with the $chr(160) spaces.
Posted By: Bejito Re: motd acsii art display - 07/04/07 01:20 AM
i have try use 160 (dec) or A0 (hex) in my personal ircd.motd but i have the same problem ...
Posted By: Kardafol Re: motd acsii art display - 07/04/07 01:41 AM
After testing, mIRC does not break ascii art:
Code:
Current Global Users: 1  Max: 1
-
Message of the Day, irc.localhost.com
-
- 7/4/2007 2:34
-                                      .__          
-   ____ ___  ________    _____ ______ |  |   ____  
- _/ __ \\  \/  /\__  \  /     \\____ \|  | _/ __ \ 
- \  ___/ >    <  / __ \|  Y Y  \  |_> >  |_\  ___/ 
-  \___  >__/\_ \(____  /__|_|  /   __/|____/\___  >
-      \/      \/     \/      \/|__|             \/ 
-
End of /MOTD command.

Posted By: Jigsy Re: motd acsii art display - 07/04/07 01:50 AM
This sounds like a font issue.

Depends if the font you're using is monospaced.
Posted By: FaiNT Re: motd acsii art display - 07/04/07 02:50 AM
or it can be a issue of a script, some scripts will handle motd and doing so will remove spaces
Posted By: Riamus2 Re: motd acsii art display - 07/04/07 03:03 AM
I would *strongly* recommend *not* using $chr(160) for spacing things like ASCII art. $chr(160) is *not* really a space -- or even a double space -- and not all fonts show it as a space. Various fonts will show it as something else and that will make the text look really messed up. There is absolutely no reason why you cannot use double control codes for spacing things out.

//echo -a This         is spaced

That's using Ctrl-B 2x between each space. You can also use other codes, such as Ctrl-U or Ctrl-R. You should always use groups of 2 unless you're certain it won't affect the output. For example, if there is an odd number of Ctrl-Bs, then the ending text will be bold instead of normal. But, if you know that there are the same number of control characters, you can do it with single ones...

//echo -a This         is spaced

That would be okay because there are 8 control characters, so it evens out.

Just remember that if you use Ctrl-O, you will remove all colors and other formatting. If you want it to all be the default text color, you can just use single Ctrl-Os between the spaces...

//echo -a This         is spaced

Doing it this way, you *can* have an odd number of control characters. I'd recommend starting all of the text with a Ctrl-O if you use Ctrl-Os, though... it will prevent issues if someone has a script that colors the MOTD text:

//echo -a This         is spaced

Anyhow, you can continue to use/suggest $chr(160) for spacing issues, but it really is a bad idea.

And, for those who don't want to do that (this won't work for MOTD), you can grab spaces.dll and that will take care of it for you.
Posted By: Om3n Re: motd acsii art display - 07/04/07 05:47 AM
Indeed, to OP.. for anything that a script does not intercept and change the output for, the display depends entirely on the font being used in that window (ie status). For ascii text, make sure you are also using a fixedwidth text.

If there is a script that is messing with the motd, id personally suggest removing that part of it. Not sure why anybody would want to alter that, but i guess some mirc themes could have.
© mIRC Discussion Forums