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

Don't try to center on terminals < 80 columns wide

parent d7bfad5e
No related branches found
No related tags found
No related merge requests found
...@@ -47,8 +47,10 @@ if(options.singlecolumn_margin == undefined) ...@@ -47,8 +47,10 @@ if(options.singlecolumn_margin == undefined)
if(options.singlecolumn_height == undefined) if(options.singlecolumn_height == undefined)
options.singlecolumn_height = console.screen_rows - options.singlecolumn_margin; options.singlecolumn_height = console.screen_rows - options.singlecolumn_margin;
if(console.screen_columns < 80) if(console.screen_columns < 80) {
options.multicolumn = false; options.multicolumn = false;
options.center = false;
}
if(options.restricted_user_msg === undefined) if(options.restricted_user_msg === undefined)
options.restricted_user_msg = bbs.text(R_ExternalPrograms); options.restricted_user_msg = bbs.text(R_ExternalPrograms);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment