diff options
author | Andreas Kling <kling@serenityos.org> | 2021-02-20 16:57:31 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-20 17:04:46 +0100 |
commit | 8c9ae4e537481873a9ecc7d513ae29ac97a67ae7 (patch) | |
tree | 7432ecf19f7472e39c7802155de250ab4e4483d9 /Userland/Applications/Terminal | |
parent | bb6d6dce7b4e39c8fdea8689650bf6fb8ad30f92 (diff) | |
download | serenity-8c9ae4e537481873a9ecc7d513ae29ac97a67ae7.zip |
Terminal+LibVT: Resize Terminal app window when requested by VT
This will allow us to react to things like DECCOLM.
Diffstat (limited to 'Userland/Applications/Terminal')
-rw-r--r-- | Userland/Applications/Terminal/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Applications/Terminal/main.cpp b/Userland/Applications/Terminal/main.cpp index 200a569125..bc282835f4 100644 --- a/Userland/Applications/Terminal/main.cpp +++ b/Userland/Applications/Terminal/main.cpp @@ -372,6 +372,9 @@ int main(int argc, char** argv) terminal.on_title_change = [&](auto& title) { window->set_title(title); }; + terminal.on_terminal_size_change = [&](auto& size) { + window->resize(size); + }; terminal.apply_size_increments_to_window(*window); window->show(); window->set_icon(app_icon.bitmap_for_size(16)); |