summaryrefslogtreecommitdiffstats
path: root/src/btop_input.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/btop_input.cpp')
-rw-r--r--src/btop_input.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/btop_input.cpp b/src/btop_input.cpp
index 2056bea..6e4fc02 100644
--- a/src/btop_input.cpp
+++ b/src/btop_input.cpp
@@ -32,6 +32,8 @@ using std::cin, std::vector, std::string_literals::operator""s;
using namespace Tools;
namespace rng = std::ranges;
+extern void clean_quit(int sig);
+
namespace Input {
//* Map for translating key codes to readable values
@@ -187,7 +189,7 @@ namespace Input {
if (not filtering) {
bool keep_going = false;
if (str_to_lower(key) == "q") {
- exit(0);
+ clean_quit(0);
}
else if (is_in(key, "escape", "m")) {
Menu::show(Menu::Menus::Main);
@@ -483,4 +485,4 @@ namespace Input {
}
}
-} \ No newline at end of file
+}