From 60baeef29c4f76cff26fef5bc2c17c4d7596ba55 Mon Sep 17 00:00:00 2001 From: d3rrial Date: Thu, 1 Sep 2016 10:55:33 +0200 Subject: [PATCH] added feature function to clear console manually --- src/files.h | 3 ++- src/menu.cc | 6 ++++++ src/window.cc | 3 +++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/files.h b/src/files.h index 95b4f24..7d858b7 100644 --- a/src/files.h +++ b/src/files.h @@ -140,7 +140,8 @@ R"RAW( #endif R"RAW( "close_tab": "w", - "window_toggle_split": "" + "window_toggle_split": "", + "clear_console": "c" }, "project": { "default_build_path_comment": "Use to insert the project top level directory name", diff --git a/src/menu.cc b/src/menu.cc index f17805c..69d853c 100644 --- a/src/menu.cc +++ b/src/menu.cc @@ -349,6 +349,12 @@ Menu::Menu() { app.window_toggle_split +
+ + _Clear _Console + app.clear_console + +
diff --git a/src/window.cc b/src/window.cc index 79f7f29..4dd54cc 100644 --- a/src/window.cc +++ b/src/window.cc @@ -1047,6 +1047,9 @@ void Window::set_menu_actions() { menu.add_action("window_toggle_split", [this] { Notebook::get().toggle_split(); }); + menu.add_action("clear_console", [this] { + Terminal::get().clear(); + }); } void Window::activate_menu_items(bool activate) {