summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-07-05 23:34:02 +0200
committerAndreas Kling <kling@serenityos.org>2020-07-05 23:34:02 +0200
commit0c4b0c0312e32f802103c84d5061351222ee84ec (patch)
treed7ff901e0559a1e396063928b57b3770cbd631ec /Applications
parente8a59ef842a5c96823b3dcba30a97f861f5bfb75 (diff)
downloadserenity-0c4b0c0312e32f802103c84d5061351222ee84ec.zip
Terminal+LibVT: Add "clear including history" action (Ctrl+Shift+K) :^)
Sometimes you just want to get rid of all your scrollback history in the terminal, and now there's a way to do that.
Diffstat (limited to 'Applications')
-rw-r--r--Applications/Terminal/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Applications/Terminal/main.cpp b/Applications/Terminal/main.cpp
index 34cf76e56e..85ccb58cc9 100644
--- a/Applications/Terminal/main.cpp
+++ b/Applications/Terminal/main.cpp
@@ -297,6 +297,9 @@ int main(int argc, char** argv)
edit_menu.add_action(terminal.copy_action());
edit_menu.add_action(terminal.paste_action());
+ auto& view_menu = menubar->add_menu("View");
+ view_menu.add_action(terminal.clear_including_history_action());
+
GUI::ActionGroup font_action_group;
font_action_group.set_exclusive(true);
auto& font_menu = menubar->add_menu("Font");