• bbs.atcode() has issues

    From Michael Long@VERT to GitLab issue in main/sbbs on Thu Feb 4 22:38:05 2021
    open https://gitlab.synchro.net/main/sbbs/-/issues/216

    The output of bbs.atcode() does not match other parsing such as bbs.menu()

    For example bbs.atcode("TIME-L") is missing the "am" or "pm" and bbs.atcode("ALIAS|L20") returns null whereas bbs.atcode("ALIAS") returns my username.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Thu Feb 4 22:52:44 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/216#note_1464

    You can't use the output formatting stuff with bbs.atcode(). In JavaScript, you have plenty of other methods of formatting (e.g. padding, truncating, aligning) the output.

    This is by design.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Thu Feb 4 22:57:09 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/216#note_1465

    Looks like `js_atcode()` has *some* output formatting support (for `-L` and `-R` only). Ugh. It's lacking a lot of formatting options.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Michael Long@VERT to GitLab note in main/sbbs on Thu Feb 4 22:59:52 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/216#note_1466

    The main complication is using menu files in frame.js, that is the only way it can parse them is with bbs.atcodes()

    Another alternative would be if there was a bbs.menu() equivalent command that could return a string instead of printing to the screen

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Thu Feb 4 23:00:21 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/216#note_1467

    Looks like @Deuce added some copy/pasta to js_atcode() 13 years ago to teach it about the -L and -R format arguments and the code was not kept in-sync with the source (`sbbs_t::show_atcode()`).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net