• exec/uselect.js

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Tue Feb 17 23:06:27 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/cd4ecde51faf08c55e9e637e
    Added Files:
    exec/uselect.js
    Log Message:
    An example "Select Item" loadable module

    I think a select item module for RIP would be great (hint hint, Nightfox)

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Wed Feb 18 00:32:29 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/3175c33defeb47ff80a6a8f9
    Modified Files:
    exec/uselect.js
    Log Message:
    Use user attributes to mellow out the bright attributes in the item names

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Wed Feb 18 01:24:24 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/ba75961a265a4bede4d610c9
    Modified Files:
    exec/uselect.js
    Log Message:
    Fix the 'Q'uit value (supposed to be -1, not the default number)

    Give it the modopts treatment since I'm pretty sure Nelgin was going to ask
    for it

    But really, I think this shold be redone as a lightbar menu, RIP menu, etc.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Fri Nov 13 20:36:22 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/5570309165c07a55a622f27f
    Modified Files:
    exec/uselect.js
    Log Message:
    uselect: page lists longer than the screen, add arrow-key navigation

    The uselect module printed every item in one pass, so a list longer than
    the terminal scrolled off the top (and tripped the screen pause). Now it
    shows only as many items as fit between the header and the prompt, with a
    dark gray "[first-last of total]" indicator on the prompt's blank line, configurable via the new modopts more_fmt option.

    Up/Down move the default item (scrolling the page as needed), PgUp/PgDn
    move by a page, and Home/End jump to the first/last item. A number may
    still be typed to select any item, on-screen or not.

    Number entry is now handled by a local getnum() mirroring
    sbbs_t::getnum(): Ctrl-C quits, a leading zero is rejected, and
    type-ahead suppresses auto-submit. Item names are padded to a common
    width, and hotspots are cleared before each redraw.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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