Minor fixes
This commit is contained in:
parent
33c3c881ed
commit
d31778d7b9
@ -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);
|
||||
}
|
||||
|
@ -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' : '') +
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user