Skip to content
Snippets Groups Projects
Commit c97145bc authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Add 'center_automsg' option (default: false)

may be used to display the auto message centered on the terminal
parent d82e90f5
No related branches found
No related tags found
No related merge requests found
Pipeline #8930 passed
...@@ -195,7 +195,10 @@ if (!(bbs.sys_status&SS_RLOGIN) || options.rlogin_xtrn_logon !== false) { ...@@ -195,7 +195,10 @@ if (!(bbs.sys_status&SS_RLOGIN) || options.rlogin_xtrn_logon !== false) {
// Auto-message // Auto-message
const auto_msg = system.data_dir + "msgs/auto.msg" const auto_msg = system.data_dir + "msgs/auto.msg"
if(file_size(auto_msg)>0) { if(file_size(auto_msg)>0) {
console.printfile(auto_msg,P_NOATCODES|P_WORDWRAP); var pmode = P_NOATCODES|P_WORDWRAP;
if(options.center_automsg)
pmode |= P_CENTER;
console.printfile(auto_msg, pmode);
} }
console.crlf(); console.crlf();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment