Skip to content
Snippets Groups Projects
Commit b465a62d authored by rswindell's avatar rswindell
Browse files

The program listing will now terminate (before the end of the list) if/when the

console-abort flag is set. This is/was the behavior of the built-in xtrn_sec
function and failed to make it into this script. This allows a long, multipage,
program listing to be aborted with 'N' or 'Q' or Ctrl-C. Thanks to Nightfox for
reporting this difference in behavior even though he was actually wanting the
console-abort flag to be ignored for a separate reason. :-)
parent c22063f9
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ var xsec=-1;
}
var options;
if((options=load("modopts.js","xtrn_sec")) == null)
if((options=load({}, "modopts.js","xtrn_sec")) == null)
options = {multicolumn: true, sort: false}; // default values
if(options.multicolumn == undefined)
......@@ -83,7 +83,7 @@ function external_program_menu(xsec)
else
n=prog_list.length;
for(i=0;i<n;i++) {
for(i=0;i<n && !console.aborted;i++) {
printf(bbs.text(XtrnProgLstFmt),i+1
,prog_list[i].name
,prog_list[i].cost);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment