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 4dfdb036 authored by rswindell's avatar rswindell

Fix line-at-a-time mode printfile() operation with regards to attributes

maintained between lines, reported by Immortal@IDOMAIN:
Use P_SAVEATR to retain the new attributes after each call to putmsg() in
printfile() line-at-a-time mode. We are no setting the initial attribute to
LIGHTGRAY or restoring the original attribute at the end (like a call to
putmsg() withou the P_SAVEATR would) - so we may need to add that later
for line-at-a-time mode, as well.
parent 142521ab
......@@ -132,7 +132,7 @@ bool sbbs_t::printfile(const char* fname, long mode, long org_cols)
break;
if((mode&P_UTF8) && !term_supports(UTF8))
utf8_normalize_str(buf);
putmsg(buf, mode, org_cols);
putmsg(buf, mode|P_SAVEATR, org_cols);
}
free(buf);
fclose(stream);
......
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