Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit d253a994 authored by rswindell's avatar rswindell

Fix for use of save/restoreline() after using rputs() to display a prompt. The

line counter was never cleared (upon rputs() of "\n") and the current attribute
was not saved when a new line was being buffered.
This applies to JS console.write() as well since it uses rputs().
parent 1b39bf8d
......@@ -391,8 +391,13 @@ int sbbs_t::rputs(const char *str, size_t len)
if((char)ch == (char)TELNET_IAC && !(telnet_mode&TELNET_MODE_OFF))
outcom(TELNET_IAC); /* Must escape Telnet IAC char (255) */
}
if(lbuflen<LINE_BUFSIZE)
if(ch == '\n')
lbuflen=0;
else if(lbuflen<LINE_BUFSIZE) {
if(lbuflen == 0)
latr = curatr;
lbuf[lbuflen++] = ch;
}
}
return(l);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment