https://gitlab.synchro.net/main/sbbs/-/commit/6c323d88b56558cb95bfedfd
Modified Files:
src/sbbs3/putmsg.cpp sbbs.h
Log Message:
A couple of bug-fixes when using PCBoard color codes (@Xxx)
attributes are not expected to be automatically reset (e.g. back to lightgray) at the end of each line, as is expected with some other extended color codes. Many PCB display files set the desired color at the beginning of each line, so you wouldn't notice the problem with *those* files.
The @X00 code was saving the current attribute as it's supposed to, but to a function-static variable, which would be shared among all sbbs_t instances (node threads) and thus cause a concurrency/corruption issue if multiples nodes were displaying PCBoard-color coded files at the same time.
Also, unrelated (now) to PCBoard colored files, but for the extra attribute types that *do* expect the colors to be reset at the end of each line, we weren't resetting the 'exatr' flag after each newline, so a single use of such a color code would cause the attributes to be reset before every newline sequence in the file thereafter. That doesn't seem correct.
--- SBBSecho 3.34-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)