• bbs.atcode() has issues

    From Michael Long@1:103/705 to GitLab issue in main/sbbs on Thu Feb 4 14:38:04 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.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Thu Feb 4 14: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.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Thu Feb 4 14:57:08 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.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Michael Long@1:103/705 to GitLab note in main/sbbs on Thu Feb 4 14: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
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Thu Feb 4 15:00:20 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()`).
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)