Move our tools to tools/ no longer need ansitex.src

This commit is contained in:
Deon George 2023-12-27 22:39:26 +11:00
parent d9b056c5cd
commit 00a1ad795d
9 changed files with 34 additions and 2 deletions

View File

@ -1 +0,0 @@
exec "?ansitex"

View File

@ -7,7 +7,7 @@
*/ */
log(LOG_DEBUG,'* INIT: ANSItex'); log(LOG_DEBUG,'* INIT: ANSItex');
var debug_mode = 'ansitex/at0593/10010011'; // eg: 'user/password/10010010001'; var debug_mode = ''; // eg: 'user/password/10010010001';
// SBBS Key definitions // SBBS Key definitions
require('key_defs.js','KEY_ESC'); require('key_defs.js','KEY_ESC');

29
tools/frame_load.js Normal file
View File

@ -0,0 +1,29 @@
load('ansitex/load/funcs.js');
load('ansitex/load/page.js');
/* parse command arguments */
if (argv.length !== 1) {
writeln('! ERROR: Need 1 arguments only');
exit(1);
}
var file = argv.shift();
var ext = file_getext(file).substr(1).toLowerCase();
// Type of frame to load
switch (ext) {
case 'tex':
require('ansitex/load/session/ansitex.js','SESSION_ANSITEX');
break;
case 'vtx':
require('ansitex/load/session/viewdata.js','SESSION_VIEWDATA');
break;
}
var page = new Page(false);
page.import(file);
//page.build();
//page.get(new PageObject(980,'a'));
page.save();

4
tools/msgbases_list.js Normal file
View File

@ -0,0 +1,4 @@
load('ansitex/load/msgbases.js');
var ma = new MsgAreas();
writeln(JSON.stringify(ma.list));