• ANSI BOT question

    From The Godfather@21:1/165 to All on Friday, June 26, 2020 08:33:45
    Hi all,

    hope all is well.

    I am trying to setup a "posttextfile" using mutil, in ANSI. I've added the words [ANSI] to the beginning of the subject line, within the .ini. In addition, have sure no pipe codes are within the .ans file, it's 75x17 in
    size. It loads perfectly if I upload it within a post (/U) but when using
    the posttextfile stanza, the ANSI gets completely currupted beyond what would appear to be line wrap issues.

    Has anyone else experienced this and found the secret sauce to fix it? And / or is there a step or "thing" I'm missing?

    Any ideas would be appreciated!

    -tG

    --- Mystic BBS v1.12 A45 2020/02/18 (Windows/32)
    * Origin: The Underground [@] theunderground.us:10023 <-port (21:1/165)
  • From apam@21:1/126 to The Godfather on Friday, June 26, 2020 23:17:38
    Hi all,

    hope all is well.

    I am trying to setup a "posttextfile" using mutil, in ANSI. I've
    added the words [ANSI] to the beginning of the subject line, within
    the .ini. In addition, have sure no pipe codes are within the .ans
    file, it's 75x17 in size. It loads perfectly if I upload it within
    a post (/U) but when using the posttextfile stanza, the ANSI gets completely currupted beyond what would appear to be line wrap
    issues.

    Has anyone else experienced this and found the secret sauce to fix


    Save it in the draw as a maximum of 79 characters wide. That will save
    it with a maximum of 79 chars including ansi codes and stop it from
    getting linewrapped




    --- MagickaBBS v0.15alpha (Linux/x86_64)
    * Origin: HappyLand - telnet://happylandbbs.com:2023/ (21:1/126)
  • From The Godfather@21:1/165 to apam on Friday, June 26, 2020 11:32:36
    Save it in the draw as a maximum of 79 characters wide. That will save
    it with a maximum of 79 chars including ansi codes and stop it from getting linewrapped


    I did that in Pablo draw, and the ansi file is only around 73 characters wide to begin with. I can try Tdraw if Pablo does not allow the same function you describe above?

    --- Mystic BBS v1.12 A45 2020/02/18 (Windows/32)
    * Origin: The Underground [@] theunderground.us:10023 <-port (21:1/165)
  • From apam@21:1/126 to The Godfather on Saturday, June 27, 2020 08:53:54
    Save it in the draw as a maximum of 79 characters wide. That
    will save it with a maximum of 79 chars including ansi codes
    and stop it from getting linewrapped


    I did that in Pablo draw, and the ansi file is only around 73
    characters wide to begin with. I can try Tdraw if Pablo does not
    allow the same function you describe above?

    The problem is the text including ansi codes for things like changing
    colour adds up to over 79 chars.

    The draw can save it so it uses cursor positioning to make the source of
    the ansi file 79 chars or less wide


    Andrew




    --- MagickaBBS v0.15alpha (Linux/x86_64)
    * Origin: HappyLand - telnet://happylandbbs.com:2023/ (21:1/126)
  • From The Godfather@21:1/165 to apam on Friday, June 26, 2020 21:23:05
    Thanks for the tip. I tried the suggestion, however I'm still discovering a solution. Tdraw was unable to fix the issue. Like I said, I can load it
    using /U from within a post, locally, and it displays fine. Its only when using the stanza for posttextfile.ini

    -tG

    --- Mystic BBS v1.12 A45 2020/02/18 (Windows/32)
    * Origin: The Underground [@] theunderground.us:10023 <-port (21:1/165)
  • From Al@21:4/106.1 to The Godfather on Friday, June 26, 2020 18:37:58
    Thanks for the tip. I tried the suggestion, however I'm still discovering a solution. Tdraw was unable to fix the issue. Like I said, I can load it using /U from within a post, locally, and it displays fine.

    That's true, when you save an ansi with mystic's ansi editor it saves it in block mode so they always look good in messages.

    You can also save an ansi in the draw in block mode but I forget how to do that
    but it's in the settings or an option when saving.

    Its only when using the stanza for posttextfile.ini

    Mutil's PostTextFile option is limited to 79 (or it might be 80) characters even with plain text. If you post a message with lines longer than that it gets
    truncated so that's something to keep in mind also.

    I would think that posting a message with mutil would work OK as long as it is saved in block mode but I don't have such a file to try myself.

    --- BBBS/Li6 v4.10 Toy-4
    * Origin: The Rusty MailBox - Penticton, BC Canada (21:4/106.1)
  • From apam@21:1/126.2 to The Godfather on Saturday, June 27, 2020 14:01:34
    Thanks for the tip. I tried the suggestion, however I'm still
    discovering a solution. Tdraw was unable to fix the issue. Like I
    said, I can load it using /U from within a post, locally, and it
    displays fine. Its only when using the stanza for posttextfile.ini

    That's right, because /U converts it to 79 characters wide. Pablodraw
    does not.

    TheDraw when you save the file, gives you an option to save width, you
    need to say 79 here.

    The issue is an ANSI file contains visible characters and invisible "ANSI codes" together these make a width of greater than 79 characters, and
    mystic wraps messages at 80 characters.

    When you save with a maximum width in thedraw (or "block mode" as Al
    calls it) it will convert the ansi to a way that fits within this 79
    character message width restriction.

    It does this by splitting the lines up and then using cursor control to
    go up and across to draw the rest of the line it split.

    Without saving the ansi at 79 chars (regardless of how wide your visible characters are) it will wrap at 80 chars, and you will see lines cut in
    half.

    Andrew


    --- MagickaBBS v0.15alpha (SunOS/i86pc)
    * Origin: Dragon Rising - ghostbbs.hopto.org:2023 (21:1/126.2)
  • From Bugz@21:4/110 to The Godfather on Saturday, June 27, 2020 04:38:52
    The Godfather wrote to All <=-

    Has anyone else experienced this and found the secret sauce to fix it?
    And / or is there a step or "thing" I'm missing?

    I know I ran into similar problems posting the ANSI
    "Space Report for BZ&BZ BBS" in the bot channel.
    I'm building the ANSI and text files with python, so
    I'm able to mangle it any way I like.

    At 70 chars, I save the cursor postion ESC[s and
    the next line I restore ESC[u and finish the line.

    Any ideas would be appreciated!

    Using thedraw is probably the easiest way to do that,
    but I've read you haven't had luck with that. :(

    Is the file somewhere to be downloaded? I'll give it
    a whack. Or upload it to BZ&BZ?

    Take care,
    bugz

    ... Gone crazy, be back later, please leave message.
    ___ MultiMail/Linux v0.49

    --- Mystic BBS/QWK v1.12 A45 2020/02/18 (Linux/64)
    * Origin: BZ&BZ BBS (21:4/110)
  • From The Godfather@21:1/165 to apam on Sunday, June 28, 2020 07:40:06
    The problem is the text including ansi codes for things like changing colour adds up to over 79 chars.
    The draw can save it so it uses cursor positioning to make the source of the ansi file 79 chars or less wide

    So Stizzed (Michael) put the ANSI file into his TheDraw and did the same
    exact thing of saving at 79 lines, and now it works. So I'm just using that file :) I wonder if it has to do with my DOSbox version and or Windows 10/64bit? I followed your directions to a T and no go. Weird. But anyway,
    I stand corrected, and yes, you were right :) Thanks again for your reply.

    tG

    --- Mystic BBS v1.12 A45 2020/02/18 (Windows/32)
    * Origin: The Underground [@] theunderground.us:10023 <-port (21:1/165)
  • From apam@21:1/126 to The Godfather on Sunday, June 28, 2020 22:01:30
    The problem is the text including ansi codes for things like
    changing colour adds up to over 79 chars.
    The draw can save it so it uses cursor positioning to make the
    source of the ansi file 79 chars or less wide

    So Stizzed (Michael) put the ANSI file into his TheDraw and did the
    same exact thing of saving at 79 lines, and now it works. So I'm
    just using that file :) I wonder if it has to do with my DOSbox
    version and or Windows 10/64bit? I followed your directions to a T
    and no go. Weird. But anyway, I stand corrected, and yes, you
    were right :) Thanks again for your reply.

    That is weird. I'm glad you got it working though.

    It's one of those questions that comes up fairly regularly, and often
    there is misunderstanding between the width of the source of the file vs
    the width of what you see rendered.

    Probably should put something on the wiki with screenshots.

    Andrew


    --- MagickaBBS v0.15alpha (Linux/x86_64)
    * Origin: HappyLand - telnet://happylandbbs.com:2023/ (21:1/126)