csi: implement private modes 2034 + 2038

2034 enables window resize notifications, with the notifications being
in pixels.

2038 does the same, but in characters instead of pixels.

See
https://gist.github.com/rockorager/e695fb2924d36b2bcf1fff4a3704bd83
for specification
This commit is contained in:
Daniel Eklöf 2024-06-28 18:38:03 +02:00
parent cbe399ecd9
commit 774c60602b
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 119 additions and 30 deletions

View file

@ -3866,6 +3866,11 @@ tiocswinsz(struct terminal *term)
{
LOG_ERRNO("TIOCSWINSZ");
}
if (term->size_notifications_chars)
term_report_window_size_chars(term);
if (term->size_notifications_pixels)
term_report_window_size_pixels(term, false);
}
}