• src/sbbs3/prntfile.cpp putmsg.cpp sbbs.h

    From Rob Swindell@1:103/705 to Git commit to sbbs/master on Fri Aug 28 23:34:39 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/1510b3e2335ab6ab39fecab5
    Modified Files:
    src/sbbs3/prntfile.cpp putmsg.cpp sbbs.h
    Log Message:
    When printing a file one line at a time, don't use putmsg()Fix problem introduced inb1ecd9b62342d0e8e1419988523f25a73c5b34d1 (August 8, 2019)When sbbs_t::printfile() is used to display a file that is < 2MB in sizeand the P_OPENCLOSE mode flag was not specified, the file is read anddisplayed one line at a time. This allows for the quick display of verylarge files. This was accomlished by calling sbbs_t::putmsg() for eachline. Unfortunately, putmsg() would save and restore console mode flagslike the auto-screen pause control flags stored in sbbs_t::sys_miscso this would render some features like the POFF @-code, inoperable.This problem was reported by WitNik with files displayed fromBulleeye! Bulletins.Other issues were discovered with the WORDWRAP/WRAPOFF @-codes.Fixed with the addition of sbbs_t::putmsgfrag() which is used byprintfile() to display a message fragment (one line) withoutsaving/restoring console state flags.
    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)