From b0fa4a8d3db0b3eca0cb0e397554620d40099a6f Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Tue, 12 Jul 2005 17:45:03 +0000 Subject: [PATCH] Increment line counter (for auto-pause) for line-wrapped text. --- src/sbbs3/putmsg.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/sbbs3/putmsg.cpp b/src/sbbs3/putmsg.cpp index 0952553fba..25db97e992 100644 --- a/src/sbbs3/putmsg.cpp +++ b/src/sbbs3/putmsg.cpp @@ -53,6 +53,7 @@ char sbbs_t::putmsg(char HUGE16 *str, long mode) uchar exatr=0; int orgcon=console,i; ulong l=0,sys_status_sav=sys_status; + long col=0; attr_sp=0; /* clear any saved attributes */ tmpatr=curatr; /* was lclatr(-1) */ @@ -239,8 +240,13 @@ char sbbs_t::putmsg(char HUGE16 *str, long mode) if(i) /* if valid string, go to top */ continue; } - if(str[l]!=CTRL_Z) + if(str[l]!=CTRL_Z) { outchar(str[l]); + if(!exatr && !outchar_esc && lncntr && lbuflen && cols && ++col==cols) + lncntr++; + else + col=0; + } l++; } } -- GitLab