mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-09 11:06:10 +00:00
Terminal+LibVT: Resize Terminal app window when requested by VT
This will allow us to react to things like DECCOLM.
This commit is contained in:
parent
bb6d6dce7b
commit
8c9ae4e537
Notes:
sideshowbarker
2024-07-18 22:06:04 +09:00
Author: https://github.com/awesomekling
Commit: 8c9ae4e537
3 changed files with 7 additions and 0 deletions
|
@ -954,6 +954,9 @@ void TerminalWidget::terminal_did_resize(u16 columns, u16 rows)
|
|||
m_pixel_width = pixel_size.width();
|
||||
m_pixel_height = pixel_size.height();
|
||||
|
||||
if (on_terminal_size_change)
|
||||
on_terminal_size_change(Gfx::IntSize { m_pixel_width, m_pixel_height });
|
||||
|
||||
if (m_automatic_size_policy) {
|
||||
set_fixed_size(m_pixel_width, m_pixel_height);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue