2024-12-03 04:54:17 +00:00
|
|
|
load('ansitex/load/funcs.js');
|
2022-12-15 12:28:25 +00:00
|
|
|
load('ansitex/load/msgbases.js');
|
2022-05-06 07:41:07 +00:00
|
|
|
|
|
|
|
if (argv.length !== 1) {
|
|
|
|
writeln('ERROR: Need a msgbase page prefix');
|
|
|
|
exit(1);
|
2024-12-03 04:54:17 +00:00
|
|
|
|
|
|
|
} else {
|
|
|
|
writeln('Showing frames in:'+argv[0]);
|
2022-05-06 07:41:07 +00:00
|
|
|
}
|
|
|
|
|
2024-12-03 04:54:17 +00:00
|
|
|
var ma = new MsgAreas();
|
|
|
|
var area = ma.getArea(argv[0]);
|
2022-05-06 07:41:07 +00:00
|
|
|
|
2024-12-03 04:54:17 +00:00
|
|
|
writeln('Opening ['+argv[0]+'] - ('+area.code+')');
|
2022-05-06 07:41:07 +00:00
|
|
|
|
2024-12-03 04:54:17 +00:00
|
|
|
var msgbase = area.msgbase;
|
|
|
|
msgbase.open();
|
|
|
|
writeln('- First:'+msgbase.first_msg);
|
|
|
|
writeln('- Last:'+msgbase.last_msg);
|
|
|
|
writeln('- Next:'+area.page_next);
|
|
|
|
msgbase.close();
|
|
|
|
|
|
|
|
var frames = area.frames;
|
|
|
|
for (var x in frames)
|
|
|
|
writeln(padright(frames[x].number,4,' ')+':'+frames[x].tags);
|