csi: in-band window resize notifications, private mode 2048

This implements
https://gist.github.com/rockorager/e695fb2924d36b2bcf1fff4a3704bd83,
in-band window resize notifications.

When user enables private mode 2048 (in-band resize
notifications), *always* send current size, even if the mode is
already active.

This ensures applications can rely on getting a reply from the
terminal.
This commit is contained in:
Daniel Eklöf 2024-06-30 19:44:17 +02:00
parent e11a4ab6af
commit 38461eef6f
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 60 additions and 0 deletions

View file

@ -4072,6 +4072,8 @@ tiocswinsz(struct terminal *term)
{
LOG_ERRNO("TIOCSWINSZ");
}
term_send_size_notification(term);
}
}