• exec/noyesbar.js yesnobar.js

    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