Move our tools to tools/ no longer need ansitex.src
This commit is contained in:
parent
d9b056c5cd
commit
00a1ad795d
@ -1 +0,0 @@
|
||||
exec "?ansitex"
|
2
main.js
2
main.js
@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
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
|
||||
require('key_defs.js','KEY_ESC');
|
||||
|
29
tools/frame_load.js
Normal file
29
tools/frame_load.js
Normal 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
4
tools/msgbases_list.js
Normal file
@ -0,0 +1,4 @@
|
||||
load('ansitex/load/msgbases.js');
|
||||
|
||||
var ma = new MsgAreas();
|
||||
writeln(JSON.stringify(ma.list));
|
Loading…
Reference in New Issue
Block a user