Skip to content
Snippets Groups Projects
Commit 7edb47e6 authored by deuce's avatar deuce
Browse files

Fix SOS and C1 set parsing. SOS is allowed to have an ESC in it, just not

ESC \ or ESC X.  ESC followed by anything from '@' to '_' is an element of
the C1 set, it's just that ESC [ is the most commonly used one.

Use < 4 since APS, DCS, PM and OSC also have their own escape parsing.
parent dfbd9132
No related branches found
No related tags found
No related merge requests found
......@@ -192,7 +192,7 @@ void sbbs_t::outchar(char ch)
if(console&CON_ECHO_OFF)
return;
if(ch==ESC)
if(ch==ESC && outchar_esc < 4)
outchar_esc=1;
else if(outchar_esc==1) {
if(ch=='[')
......@@ -201,6 +201,8 @@ void sbbs_t::outchar(char ch)
outchar_esc=4;
else if(ch=='X')
outchar_esc=5;
else if(ch >= 0x40 && ch <= 0x5f)
outchar_esc=3;
else
outchar_esc=0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment