diff --git a/cpp/service/buffer.cpp b/cpp/service/buffer.cpp index 2b6b625..a7e4608 100644 --- a/cpp/service/buffer.cpp +++ b/cpp/service/buffer.cpp @@ -23,6 +23,7 @@ along with this program. If not, see . #include "../util/_index.hpp" #include "../gesture/_index.hpp" #include // fgets_unlocked, stdin +#include // std::ios, std::cout, std::cin /** * Starts the comfortable-swipe service by buffering libinput debug-events. @@ -31,6 +32,11 @@ namespace comfortable_swipe::service { void buffer() { + std::ios::sync_with_stdio(false); + std::cin.tie(0); + std::cout.tie(0); + std::cout.flush(); + // read config file auto config = comfortable_swipe::util::read_config_file(__COMFORTABLE_SWIPE__CONFIG__);