• Scan configuration and message pointer lists: pagination, navigation k

    From Rob Swindell@1:103/705 to GitLab issue in main/sbbs on Sun Nov 15 12:00:29 2026
    open https://gitlab.synchro.net/main/sbbs/-/work_items/1350

    The new-scan / your-scan configuration and the message pointer configuration print their group and sub-board lists straight through and then prompt for a number. There is no pagination beyond the generic screen pause, no navigation keys, no selected item and no Find, and the whole list is printed again after every change.

    Every user reaches these from the stock command shells, and a group's
    sub-board list is often longer than the screen.

    ## Where

    - `sbbs_t::new_scan_cfg()` in `src/sbbs3/scansubs.cpp`: group list
    (`CfgGrpLstHdr` / `CfgGrpLstFmt`), then the group's sub-boards with their
    On / Off / To-You-Only state (`CfgSubLstHdr` / `CfgSubLstFmt`), prompts
    `NScanCfgWhichGrp` / `SScanCfgWhichGrp` and `NScanCfgWhichSub` /
    `SScanCfgWhichSub`.
    - `sbbs_t::new_scan_ptr_cfg()` in the same file: group list, then the group's
    sub-boards with their pointer dates (`SubPtrLstFmt`), prompt `WhichOrAll`,
    followed by `SetMsgPtrPrompt`.

    ## What these lists need that a plain selection list does not

    - A per-item state column (On / Off / To-You-Only, or the pointer date) that
    changes while the list is displayed.
    - An **All** key, at both the group and the sub-board level.
    - The list staying up across changes, with the selected item kept where it
    was, rather than a full reprint per toggle.

    `sbbs_t::uselect()` (the Select Item loadable module) returns one item and
    has none of these, so it is not a drop-in replacement.

    ## Proposal

    Move both functions' list handling onto `exec/load/select_item.js`, as was
    done for the area lists, the Text File Section and the External Programs Section (#1346), which brings pagination, Up/Down/Home/End/PgUp/PgDn, an optional selected-item marker or lightbar, and Find (#1345). Either:

    - a new loadable module (e.g. "Scan Configuration") with the current C++ kept
    as the fallback when the module is not set, or
    - extra keys and a per-item suffix passed through the existing Select Item
    module call.

    Without any new `modopts.ini` options the lists should look as they do in v3.21, and the existing `text.dat` strings should keep working.

    Related: #1348 (message and mail listings).

    — *Authored by Claude (Claude Code), on behalf of @rswindell*
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Sun Nov 15 12:37:07 2026
    https://gitlab.synchro.net/main/sbbs/-/work_items/1350#note_11039

    Implemented in 74af0ecdb8 (dance-16-audit) as a new loadable module, **Scan Config** (SCFG->System->Loadable Modules->Scan Config, the `scancfg` key of `main.ini`), with the stock module `exec/scancfg.js` built on `select_item.js`.

    - `bbs.cfg_msg_scan()` and `bbs.cfg_msg_ptrs()` (and the Baja equivalents) run the module as `scancfg cfg <mode>` or `scancfg ptrs` when one is set; the built-in lists remain as the fallback.
    - The lists page, take the navigation keys, and offer Find when an item is marked. The All key, the "Messages to you only" question and the count / Date / Last pointer prompt behave as before, with the same `text.dat` strings.
    - `modopts.ini` `[scancfg]` options: `selected_item_prefix`, `unselected_item_prefix`, `selected_item_attr`, `lightbar`, `more_fmt`. With none set the lists look like the built-in ones.
    - The compiled-in default is no module, so clearing the option brings the built-in lists back. The stock `main.ini` sets `scancfg`; an existing system keeps the built-in lists until its sysop sets the option.
    - The pointer for a date, and the date a pointer is at, are found in JS by a binary search of the message index; no new JS methods were needed.

    One thing the description asked for is not done: the list is still displayed again in full after each change (on the same page, with the same item selected) rather than repainted in place, because the follow-up prompts print below the list and can scroll it.

    `scfg_t` grew, so everything that loads the configuration needs rebuilding together, `sbbsctrl` included.

    Documented at https://wiki.synchro.net/module:scancfg

    — *Authored by Claude (Claude Code), on behalf of @rswindell*
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab issue in main/sbbs on Sun Nov 15 12:37:07 2026
    close https://gitlab.synchro.net/main/sbbs/-/work_items/1350
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)