From 25d7bb4d19e8db9a550fb2185af27cc3929bd353 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Thu, 17 Dec 2020 22:49:30 +0100 Subject: [PATCH] Suppress any output from external commands --- src/macro_utilities.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/macro_utilities.cpp b/src/macro_utilities.cpp index aeb0c1b1..4259503d 100644 --- a/src/macro_utilities.cpp +++ b/src/macro_utilities.cpp @@ -88,10 +88,7 @@ RunExternalCommand::RunExternalCommand(std::string &&command) void RunExternalCommand::run() { GNUC_UNUSED int res; - - NC::pauseScreen(); - res = std::system(m_command.c_str()); - NC::unpauseScreen(); + res = std::system((m_command + " &>/dev/null").c_str()); } }