summaryrefslogtreecommitdiff
path: root/Userland/Applications/Terminal
diff options
context:
space:
mode:
authorBrendan Coles <bcoles@gmail.com>2021-03-13 03:49:39 +0000
committerAndreas Kling <kling@serenityos.org>2021-03-13 09:55:11 +0100
commit7b22fb70a2caae597c86925ce8a15f2a0d2129df (patch)
tree6038800520d29c86f5a486f38a2ca2a1542e4a15 /Userland/Applications/Terminal
parent793d315994875435418961b92f247a0a81452933 (diff)
downloadserenity-7b22fb70a2caae597c86925ce8a15f2a0d2129df.zip
Terminal: Add support for fullscreen view
Diffstat (limited to 'Userland/Applications/Terminal')
-rw-r--r--Userland/Applications/Terminal/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Applications/Terminal/main.cpp b/Userland/Applications/Terminal/main.cpp
index 8967a985e1..96d0b39e23 100644
--- a/Userland/Applications/Terminal/main.cpp
+++ b/Userland/Applications/Terminal/main.cpp
@@ -457,6 +457,9 @@ int main(int argc, char** argv)
}));
auto& view_menu = menubar->add_menu("View");
+ view_menu.add_action(GUI::CommonActions::make_fullscreen_action([&](auto&) {
+ window->set_fullscreen(!window->is_fullscreen());
+ }));
view_menu.add_action(terminal.clear_including_history_action());
view_menu.add_separator();
view_menu.add_action(pick_font_action);