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 0d8d5f58 authored by rswindell's avatar rswindell

rputs() now support CP437 0xDB (solid block) to PETSCII conversion (requires

enabling/disabling reverse mode), ala outchar().
parent 222c9c55
......@@ -375,8 +375,11 @@ int sbbs_t::rputs(const char *str, size_t len)
for(l=0;l<len && online;l++) {
uchar ch = str[l];
utf8[0] = 0;
if(term&PETSCII)
if(term&PETSCII) {
ch = cp437_to_petscii(ch);
if(ch == PETSCII_SOLID)
outcom(PETSCII_REVERSE_ON);
}
else if((term&NO_EXASCII) && (ch&0x80))
ch = exascii_to_ascii_char(ch); /* seven bit table */
else if(term&UTF8) {
......@@ -391,6 +394,8 @@ int sbbs_t::rputs(const char *str, size_t len)
break;
if((char)ch == (char)TELNET_IAC && !(telnet_mode&TELNET_MODE_OFF))
outcom(TELNET_IAC); /* Must escape Telnet IAC char (255) */
if((term&PETSCII) && ch == PETSCII_SOLID)
outcom(PETSCII_REVERSE_OFF);
}
if(ch == '\n')
lbuflen=0;
......
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