Skip to content
Snippets Groups Projects
Commit 2c186125 authored by deuce's avatar deuce
Browse files

Reset outchar_esc to 0 as soon as last ANSI sequence char is sent.

Back out last putmsg change as outchar_esc now means what it was intended
to mean (ie: outchar is in an ESC sequence)
parent 922f684d
No related branches found
No related tags found
No related merge requests found
......@@ -273,6 +273,8 @@ void sbbs_t::outchar(char ch)
if(lbuflen<LINE_BUFSIZE)
lbuf[lbuflen++]=ch;
}
if(outchar_esc==3)
outchar_esc=0;
if(lncntr==rows-1 && ((useron.misc&UPAUSE) || sys_status&SS_PAUSEON)
&& !(sys_status&SS_PAUSEOFF)) {
......
......@@ -221,8 +221,7 @@ char sbbs_t::putmsg(char *str, long mode)
}
/* ansi escape sequence */
if(outchar_esc && outchar_esc < 3) { /* When outchar_esc is 3, the last char outputted
* was the last char of the ANSI sequence */
if(outchar_esc) {
if(str[l]=='A' || str[l]=='B' || str[l]=='H' || str[l]=='J'
|| str[l]=='f' || str[l]=='u') /* ANSI anim */
lncntr=0; /* so defeat pause */
......@@ -243,7 +242,7 @@ char sbbs_t::putmsg(char *str, long mode)
}
if(str[l]!=CTRL_Z) {
outchar(str[l]);
if(!exatr && (outchar_esc==0 || outchar_esc==3) && lncntr && lbuflen && cols && ++col==cols)
if(!exatr && !outchar_esc && lncntr && lbuflen && cols && ++col==cols)
lncntr++;
else
col=0;
......
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