• trailing ^An on tail.asc

    From Alterego@1:103/705 to Digital Man on Friday, August 09, 2019 11:56:20
    Hey DM,

    I've only just noticed that there is 2 lines between the bottom of the main menu (I'm using whats supplied by default) - that starts with Anytime... and the prompt "Main".

    It trails with a "smiley face" "n", where "n" must be at col 80 (and therefore resulting in an additional LF in SyncTerm).

    Looking at tail.asc in text/menu/, it looks like it is

    ... Abort cmd/text ^An

    So it seems that last ^A is not being interpreted?

    od -a of that file shows that it finishes with
    0000140 c A b o r t sp c m d / t e x t sp
    0000160 soh n nl
    0000163

    So maybe that last nl is also causing the additional line feed?

    ...*


    ---
    Synchronet Alterant | an SBBS in Docker on Pi!
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Alterego on Thursday, August 08, 2019 20:42:25
    Re: trailing ^An on tail.asc
    By: Alterego to Digital Man on Fri Aug 09 2019 11:56 am

    Hey DM,

    I've only just noticed that there is 2 lines between the bottom of the main menu (I'm using whats supplied by default) - that starts with Anytime... and the prompt "Main".

    It trails with a "smiley face" "n", where "n" must be at col 80 (and therefore resulting in an additional LF in SyncTerm).

    Looking at tail.asc in text/menu/, it looks like it is

    ... Abort cmd/text ^An

    So it seems that last ^A is not being interpreted?

    od -a of that file shows that it finishes with
    0000140 c A b o r t sp c m d / t e x t sp 0000160 soh n nl
    0000163

    So maybe that last nl is also causing the additional line feed?

    Sorta. It was bug in the new line-at-a-time printfile() usage. It only showed up in *nix format (LF-terminated) files. I mostly test here with CRLF-terminated lines, so I didn't see it, but thanks for the report!

    digital man

    Synchronet "Real Fact" #5:
    Synchronet version 3 for Win32 development began in 1999.
    Norco, CA WX: 73.5F, 63.0% humidity, 5 mph ENE wind, 0.00 inches rain/24hrs --- SBBSecho 3.08-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)