Fix DECRPM parsing for 2026

As discovered in #4320 the previous code was buggy and would enable
synchronized output on any response.
This commit is contained in:
Maxime Coste 2021-11-02 19:43:16 +11:00
parent d2e2caaae6
commit 0f688656a4

View File

@ -811,7 +811,7 @@ Optional<Key> TerminalUI::get_next_key()
if (private_mode == '?' and next_char() == 'y') // DECRPM
{
if (params[0] == 2026)
m_synchronized.supported = (params[0] != 0);
m_synchronized.supported = (params[1] == 1 or params[1] == 2);
return {Key::Invalid};
}
switch (params[0])