Skip to content
Snippets Groups Projects
  • Rob Swindell's avatar
    889ca800
    Use P_NOABORT mode flag for calls to console.putmsg() · 889ca800
    Rob Swindell authored
    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.
    889ca800
    History
    Use P_NOABORT mode flag for calls to console.putmsg()
    Rob Swindell authored
    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.
yesnobar.js 1.21 KiB