Skip to content
Snippets Groups Projects
Commit a4a149ed authored by rswindell's avatar rswindell
Browse files

Enhancement: if the bulletin file in the bullseye.cfg file is "name.*",

it'll use the bbs.menu() function to display it - with automatic file
type/extension selection based on current terminal. Since the bbs.menu()
function looks for files in text/menu, you'll need to change the path
e.g. from "../text/system.msg" to just "../system.*" to display text/system.*
parent 54bbc2ac
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,10 @@ while(1) {
str=truncsp(str);
fname=str;
bbs.replace_text(563,"\001n\001h\001b{\001wContinue? Yes/No\001b} ");
if(str.search(/\.htm/)!=-1)
var ext = file_getext(fname);
if(ext == ".*")
bbs.menu(fname.slice(0, -2));
else if(str.search(/\.htm/)!=-1)
load(new Object, "typehtml.js", "-color", str);
else
load(new Object, "typeasc.js", str, "BullsEye Bulletin #"+b);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment