• exec/noyesbar.js yesnobar.js

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Thursday, October 26, 2023 01:36:13
    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 Friday, November 10, 2023 20:38:03
    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 Sunday, December 03, 2023 17:37:32
    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
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Saturday, May 25, 2024 17:27:42
    https://gitlab.synchro.net/main/sbbs/-/commit/1dc181670fb0bd83e53cd217
    Modified Files:
    exec/noyesbar.js yesnobar.js
    Log Message:
    Fix issue where Ctrl-C would leave a 'N' in the keyboard input buffer

    This problem doesn't happen with the .bin version of these scripts.

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