updated theme to look a bit nicer, removed warning ansi
This commit is contained in:
parent
086f6427ce
commit
f14290d6fd
BIN
dist/ansis/bulletin0.ans
vendored
BIN
dist/ansis/bulletin0.ans
vendored
Binary file not shown.
BIN
dist/ansis/bulletin1.ans
vendored
BIN
dist/ansis/bulletin1.ans
vendored
Binary file not shown.
BIN
dist/ansis/issue.ans
vendored
BIN
dist/ansis/issue.ans
vendored
Binary file not shown.
3
dist/config/bbs.ini
vendored
3
dist/config/bbs.ini
vendored
@ -55,4 +55,5 @@ HappyNet = config/happynet.ini
|
||||
General Files = config/filesgen.ini
|
||||
|
||||
[text files]
|
||||
Warning = ansis/bulletin0.ans
|
||||
Magicka Advertisement = ansis/bulletin0.ans
|
||||
Whats New = ansis/bulletin1.ans
|
||||
|
15
dist/scripts/login_stanza.lua
vendored
15
dist/scripts/login_stanza.lua
vendored
@ -19,8 +19,9 @@ end
|
||||
-- Display Bulletins
|
||||
while(true) do
|
||||
if file_exists(bulletin_path .. "/bulletin" .. string.format("%d", i) .. ".ans") then
|
||||
bbs_write_string("\027[2J\027[1;1H");
|
||||
bbs_display_ansi("bulletin" .. string.format("%d", i));
|
||||
bbs_write_string("\027[0mPress any key to continue...\r\n");
|
||||
bbs_write_string("\027[1;37mPress any key to continue...\027[0m");
|
||||
bbs_read_char();
|
||||
else
|
||||
break;
|
||||
@ -37,7 +38,7 @@ local machinename;
|
||||
|
||||
bbsname, sysopname, systemname, machinename = bbs_get_info();
|
||||
|
||||
bbs_write_string("\027[1;37mSystem Information\r\n");
|
||||
bbs_write_string("\r\n\r\n\027[1;37mSystem Information\r\n");
|
||||
bbs_write_string("\027[1;30m----------------------------------------------\r\n");
|
||||
bbs_write_string("\027[1;32mBBS Name : \027[1;37m" .. bbsname .. "\r\n");
|
||||
bbs_write_string("\027[1;32mSysOp Name : \027[1;37m" .. sysopname .. "\r\n");
|
||||
@ -45,7 +46,7 @@ bbs_write_string("\027[1;32mNode : \027[1;37m" .. string.format("%d", bbs
|
||||
bbs_write_string("\027[1;32mBBS Version : \027[1;37m" .. bbs_version() .. "\r\n");
|
||||
bbs_write_string("\027[1;32mSystem : \027[1;37m" .. systemname .. " (" .. machinename .. ")\r\n");
|
||||
bbs_write_string("\027[1;30m----------------------------------------------\r\n");
|
||||
bbs_write_string("\027[0mPress any key to continue...\r\n");
|
||||
bbs_write_string("\027[1;37mPress any key to continue...\027[0m");
|
||||
bbs_read_char();
|
||||
|
||||
-- Display Last 10 Callers
|
||||
@ -55,7 +56,7 @@ local user;
|
||||
local location;
|
||||
local ltime;
|
||||
|
||||
bbs_write_string("\r\n\027[1;37mLast 10 callers:\r\n");
|
||||
bbs_write_string("\r\n\r\n\027[1;37mLast 10 callers:\r\n");
|
||||
bbs_write_string("\027[1;30m-------------------------------------------------------------------------------\r\n");
|
||||
|
||||
while (i < 10) do
|
||||
@ -67,7 +68,7 @@ while (i < 10) do
|
||||
i = i + 1;
|
||||
end
|
||||
bbs_write_string("\027[1;30m-------------------------------------------------------------------------------\r\n");
|
||||
bbs_write_string("\027[0mPress any key to continue...\r\n");
|
||||
bbs_write_string("\027[1;37mPress any key to continue...\027[0m");
|
||||
bbs_read_char();
|
||||
|
||||
-- Check email
|
||||
@ -75,9 +76,9 @@ bbs_read_char();
|
||||
local email = bbs_get_emailcount();
|
||||
|
||||
if (email > 0) then
|
||||
bbs_write_string(string.format("\r\nYou have %d emails in your inbox\r\n", email));
|
||||
bbs_write_string(string.format("\r\n\r\nYou have %d emails in your inbox\r\n", email));
|
||||
else
|
||||
bbs_write_string("\r\nYou have no email\r\n");
|
||||
bbs_write_string("\r\n\r\nYou have no email\r\n");
|
||||
end
|
||||
|
||||
bbs_mail_scan();
|
||||
|
Reference in New Issue
Block a user