Skip to content
Snippets Groups Projects
Commit 1b14e744 authored by rswindell's avatar rswindell
Browse files

So Nelgin noticed that in novice (non-expert) menu mode, the A/S/D cmds

from the Chat menu would immediately clear the screen and redisplay the
menu after displaying the change in the node's state. This was due to the
enhancement in rev 1.77 of con_out.cpp whereby we no longer increment
lncntr if the first lines displayed after a key-press are blank (who
cares if blank lines scroll off the screen?). That's fine and all, but the
auto-pause check in outchar(FF) would only auto-pause if the line-counter
was greater than *one* (has been this way since forever). So with the
enhancement in 1.77, a single non-blank line displayed after a key-press
was now not enough to trigger the auto-pause ([Hit a Key] prompt).
So I've changed the line-counter trigger value to greater than *zero*,
which means we could have some new excessive auto-pauses, but other places
where auto-pause wasn't working, should again.

One new excessive auto-pause was after the system password was entered at
the SY: prompt, so that fix is included in this commit.
parent 7a5e58e0
No related branches found
No related tags found
No related merge requests found
......@@ -160,8 +160,9 @@ bool sbbs_t::chksyspass(const char* sys_pw)
SAFECOPY(str, sys_pw);
else {
bputs(text[SystemPassword]);
getstr(str, 40, K_UPPER | K_NOECHO);
getstr(str, sizeof(cfg.sys_pass)-1, K_UPPER | K_NOECHO);
CRLF;
lncntr=0;
}
if(stricmp(cfg.sys_pass,str)) {
if(cfg.sys_misc&SM_ECHO_PW)
......
......@@ -230,7 +230,7 @@ void sbbs_t::outchar(char ch)
outchar_esc=0;
if(term_supports(NO_EXASCII) && ch&0x80)
ch=exascii_to_ascii_char(ch); /* seven bit table */
if(ch==FF && lncntr>1 && !tos) {
if(ch==FF && lncntr > 0 && !tos) {
lncntr=0;
CRLF;
if(!(sys_status&SS_PAUSEOFF)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment