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 eb8fd8a9 authored by Michael Long's avatar Michael Long Committed by Rob Swindell

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

allows more flexibility in formatting xtrn program menus by allowing one to remove the titles or underline headings by setting them to 'none' in the ini file
parent 268f540c
......@@ -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