Skip to content
Snippets Groups Projects
Commit 97638c16 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Don't pass-through ANSI Device Attributes (DA) requests

putmsg(), used to display messages and display/menu files, will no longer pass-through the ANSI sequence ESC[c (found in some corrupted ANSI posts to fsxNet->FSX_BOT echo) to the client terminal since this will stimulate a (unwanted) response from the client.

I do wonder if the outchar_esc value check should be == here instead of >=, but I'm not familiar with the string and SOS states. I wonder if any display files sent from the BBS would ever include those sequences.
parent fa53e10a
Branches
Tags
No related merge requests found
......@@ -348,8 +348,8 @@ char sbbs_t::putmsgfrag(const char* buf, long* mode, long org_cols, JSObject* ob
if(str[l]=='A' || str[l]=='B' || str[l]=='H' || str[l]=='J'
|| str[l]=='f' || str[l]=='u') /* ANSI anim */
lncntr=0; /* so defeat pause */
if(str[l]=='"') {
l++; /* don't pass on keyboard reassignment */
if(str[l]=='"' || str[l]=='c') {
l++; /* don't pass on keyboard reassignment or Device Attributes (DA) requests */
continue;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment