Skip to content
Snippets Groups Projects
Commit 184d0b6f authored by rswindell's avatar rswindell
Browse files

Work on the whole DEL = backspace thing a bit, making it "less hostile".

parent e95830c1
Branches
Tags
No related merge requests found
......@@ -184,7 +184,6 @@ BOOL sbbs_t::newuser()
bprintf(text[InvalidBackspaceKeyFmt], key, key);
if(text[ContinueQ][0] && !yesno(text[ContinueQ]))
return FALSE;
newline();
}
}
......
......@@ -941,10 +941,20 @@ void sbbs_t::maindflts(user_t* user)
user->misc|=NO_EXASCII;
else
user->misc&=~NO_EXASCII;
if(!noyes(text[SwapDeleteKeyQ]))
user->misc|=SWAP_DELETE;
else
user->misc&=~SWAP_DELETE;
user->misc &= ~SWAP_DELETE;
while(text[HitYourBackspaceKey][0] && !(user->misc&SWAP_DELETE) && online) {
bputs(text[HitYourBackspaceKey]);
uchar key = getkey(K_NONE);
bprintf(text[CharacterReceivedFmt], key, key);
if(key == '\b')
break;
if(key == DEL) {
if(text[SwapDeleteKeyQ][0] == 0 || yesno(text[SwapDeleteKeyQ]))
user->misc |= SWAP_DELETE;
}
else
bprintf(text[InvalidBackspaceKeyFmt], key, key);
}
}
if(sys_status&SS_ABORT)
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment