Subj : src/sbbs3/js_console.cpp To : CVS commit From : rswindell Date : Tue May 12 2020 12:06 pm src/sbbs3 js_console.cpp 1.151 1.152 Update of /cvsroot/sbbs/src/sbbs3 In directory cvs:/tmp/cvs-serv16716 Modified Files: js_console.cpp Log Message: As part of the rev 1.147 (add mouse hot sport support) commit, I made what I thought was a harmless change to the JS console.clear() implementation, I changed the call to sbbs->CLS to sbbs->clearscreen(). The sbbs->CLS macro calls outchar(FF) which check the line-counter and does the auto-pause before screen-clear. A direct call to sbbs->clearscreen() does not. Just in case someone actually wants the new (but unexpected behavior), I added an optional boolean parameter to console.clear(), autopause (default to true). Pass false if you want to defeat the autopause functionality. This should be effectively the same as setting the console.line_counter = 0 before calling console.clear(), but it also totally bypasses sbbs_t::outchar, so there could be other differences I'm not thinking of. Anyway, this fixes the lack of auto-screen pauses in JS mods recently introduced. .