Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 33061a5d authored by Rob Swindell's avatar Rob Swindell 💬

Merge branch 'xtrnnoneformat' into 'master'

allows more flexibility in formatting xtrn program menus by allowing one to...

See merge request sbbs/sbbs!32
parents d28240a6 eb8fd8a9
Pipeline #645 passed with stage
in 15 minutes and 54 seconds
......@@ -82,6 +82,7 @@
; section_which: \r\n\1-\1gWhich, \1w\1h~Q\1n\1guit or [1]: \1h
; uncomment and modify any of the below to change the look of the external programs menu
; to remove titles or underline, set to the text ' '
; header_fmt: \1n\1c\1h%s \1n\1cExternal Programs:\r\n\r\n
; titles: \1n\1cNum \1h\xb3\1n\1c Name \1n\1c
; multicolumn_fmt: \1h\1c%3u \xb3 \1n\1c%-32.32s \1h
......
......@@ -138,16 +138,21 @@ function external_program_menu(xsec)
if(options.sort)
prog_list.sort(sort_by_name);
printf(options.header_fmt, xtrn_area.sec_list[xsec].name);
write(options.titles);
if(options.titles.trimRight() != '')
write(options.titles);
if(multicolumn) {
write(options.multicolumn_separator);
write(options.titles);
if (options.titles.trimRight() != '')
write(options.titles);
}
if(options.underline.trimRight() != '') {
console.crlf();
write(options.underline);
}
console.crlf();
write(options.underline);
if(multicolumn) {
write(options.multicolumn_separator);
write(options.underline);
if (options.underline.trimRight() != '')
write(options.underline);
}
console.crlf();
var n;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment