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 8f291318 authored by rswindell's avatar rswindell

When a new user hits the PETSCII backspace key (Ctrl-T) in response to the

backspace/delete key prompt, set the PETSCII flag in the autoterm *and* the
user's setting. If a CBM/PETSCII user actually got that prompt, that means
they were probably connecting to the wrong TCP port in the first place, so
relying on auto-terminal won't work for them on subsequent connections. We
probably should have a way to manually turn off/on PETSCII support, when
needed. <sigh>
parent ea735c3c
......@@ -170,7 +170,7 @@ BOOL sbbs_t::newuser()
while(text[HitYourBackspaceKey][0] && !(useron.misc&(PETSCII|SWAP_DELETE)) && online) {
bputs(text[HitYourBackspaceKey]);
char key = getkey(K_NONE);
uchar key = getkey(K_NONE);
bprintf(text[CharacterReceivedFmt], key, key);
if(key == '\b')
break;
......@@ -179,7 +179,7 @@ BOOL sbbs_t::newuser()
useron.misc |= SWAP_DELETE;
}
else if(key == PETSCII_DELETE)
useron.misc |= PETSCII;
useron.misc |= (AUTOTERM|PETSCII);
else {
bprintf(text[InvalidBackspaceKeyFmt], key, key);
if(text[ContinueQ][0] && !yesno(text[ContinueQ]))
......@@ -188,9 +188,11 @@ BOOL sbbs_t::newuser()
}
}
if(useron.misc&PETSCII)
if(useron.misc&PETSCII) {
autoterm |= PETSCII;
outcom(PETSCII_UPPERLOWER);
bputs(text[PetTermDetected]);
else {
} else {
if(!yesno(text[ExAsciiTerminalQ]))
useron.misc|=NO_EXASCII;
else
......
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