diff --git a/mods/ansitex.js b/mods/ansitex.js index f0e47f3..37c7357 100644 --- a/mods/ansitex.js +++ b/mods/ansitex.js @@ -11,7 +11,7 @@ load('texdefs.js'); load('texfuncs.js'); while(bbs.online) { - var mode = null; // Initial mode + var mode = false; // Initial mode var next_page = { frame: 1,index: 'a'}; // Start Frame var action = ACTION_GOTO; // Initial action var inkey_timeout = 0; // Timeout waiting for input @todo required? check if idle timetout occurs @@ -19,7 +19,7 @@ while(bbs.online) { ansiterm.send('ext_mode','clear','cursor'); while (action != ACTION_TERMINATE) { - bbs.nodesync(false); // @todo Stop the display of telegrams + bbs.nodesync(false); // @todo Stop the display of telegrams read = console.inkey(K_NONE,inkey_timeout); system.node_list[bbs.node_num-1].action=0xff; // to ensure our node status is updated correctly inkey_timeout = 60000; // Set our key timeout to 60s @@ -61,6 +61,7 @@ while(bbs.online) { if (frame.index !== 'z') { next_page = { frame: fo.frame, index: String.fromCharCode(fo.index.charCodeAt(0)+1) }; action = ACTION_GOTO; + } else { sendBaseline(ERR_ROUTE,false); } diff --git a/mods/load/texdefs.js b/mods/load/texdefs.js index 7afb03b..ee32ee5 100644 --- a/mods/load/texdefs.js +++ b/mods/load/texdefs.js @@ -41,7 +41,7 @@ function Frame(frame,index) { this.render=function() { owner = base64_decode(this.owner); - return owner+' '.repeat(FRAME_HEADER-console.strlen(owner))+'\1n '+ + return '\1n'+owner+' '.repeat(FRAME_HEADER-console.strlen(owner))+'\1n '+ '\1W\1H'+this.page+' '.repeat(FRAME_PAGENUM-this.page.length)+' '+ '\1G\1H'+' '.repeat(FRAME_COST-this.cost.toString().length)+this.cost+FRAME_COSTUNIT+ (console.screen_columns > 80 ? '\n\r' : '') + diff --git a/mods/load/texfuncs.js b/mods/load/texfuncs.js index 9f2e24a..afce5cd 100644 --- a/mods/load/texfuncs.js +++ b/mods/load/texfuncs.js @@ -88,7 +88,7 @@ function getFrame(page) { return null; } - log(LOG_ERROR,'Loaded frame: ['+frame.frame+']['+frame.index+'] ('+frame.page+')'); + log(LOG_DEBUG,'Loaded frame: ['+frame.frame+']['+frame.index+'] ('+frame.page+')'); return frame; }