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 Thursday, February 04, 2021 14:52:44
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 Thursday, February 04, 2021 14:57:09
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 Thursday, February 04, 2021 14:59:52
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 Thursday, February 04, 2021 15:00:21
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)
From Rob Swindell@1:103/705 to GitLab issue in main/sbbs on Thursday, August 08, 2024 00:18:59