This commit is contained in:
Kovid Goyal 2020-05-09 17:20:36 +05:30
parent 3d32202b3a
commit d8daf84a09
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1406,6 +1406,8 @@ report_mode_status(Screen *self, unsigned int which, bool private) {
KNOWN_MODE(EXTENDED_KEYBOARD);
KNOWN_MODE(FOCUS_TRACKING);
#undef KNOWN_MODE
case ALTERNATE_SCREEN:
ans = self->linebuf == self->alt_linebuf ? 1 : 2; break;
}
int sz = snprintf(buf, sizeof(buf) - 1, "%s%u;%u$y", (private ? "?" : ""), which, ans);
if (sz > 0) write_escape_code_to_child(self, CSI, buf);