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)