• exec/noyesbar.js yesnobar.js

    From Rob Swindell (on Debian Linux)@1:103/705 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. --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 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.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 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.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sat May 25 17:27:42 2024
    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.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)