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:
parent
d2e2caaae6
commit
0f688656a4
|
@ -811,7 +811,7 @@ Optional<Key> TerminalUI::get_next_key()
|
||||||
if (private_mode == '?' and next_char() == 'y') // DECRPM
|
if (private_mode == '?' and next_char() == 'y') // DECRPM
|
||||||
{
|
{
|
||||||
if (params[0] == 2026)
|
if (params[0] == 2026)
|
||||||
m_synchronized.supported = (params[0] != 0);
|
m_synchronized.supported = (params[1] == 1 or params[1] == 2);
|
||||||
return {Key::Invalid};
|
return {Key::Invalid};
|
||||||
}
|
}
|
||||||
switch (params[0])
|
switch (params[0])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user