• exec/noyesbar.js yesnobar.js

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Thu Oct 26 01:36:13 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/58638eceb5c809bcab34cea8
    Added Files:
    exec/noyesbar.js yesnobar.js
    Log Message:
    Lightbar confirm/deny Baja mods ported to JS, supporting multi-languages

    Really, these should just be loadable modules (not loaded via text.dat
    @exec and global variable magic), and merged into a single module, but for
    now, this will do.

    The old yesnobar.src/bin and noyesbar mods aren't used when these .js files
    are in place, unless you have a copy yesnobar/noyesbar.bin in your mods dir.

    ---
    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 10 20:38:03 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/a5e250aece64547d3b0aa740
    Modified Files:
    exec/noyesbar.js yesnobar.js
    Log Message:
    Add support for ^A? sequence in question prompts

    Ctrl-A? is a conditional new-line sequence (often used in prompts).

    This was a feature in yesnobar/noyesbar.bin and missing in this new JS
    port. Oops.

    ---
    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 Sun Dec 3 17:37:32 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/a775092c1b251dded296dcb3
    Modified Files:
    exec/noyesbar.js yesnobar.js
    Log Message:
    Use P_NOABORT mode flag for calls to console.putmsg()

    The Baja PRINT function (used in yesnobar.src/noyesbar.src) calls putmsg()
    with P_SAVEATR|P_NOABORT. Without P_NOABORT, putmsg() doesn't display anything if the global console abort (SS_ABORT) flag is set.

    So hitting 'N' or Ctrl-C at one yes/no or no/yes prompt would mean any immediately subsequent yes/no or no/yes prompt would not be displayed.

    Now that we have to require('sbbsdefs.js') for the P_NOABORT definition, this'll run a little slower. :-(

    Enable/conform to "use strict" mode.

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