From 979ae41520ab477234ce901b243d8c232623961d Mon Sep 17 00:00:00 2001 From: eidheim Date: Tue, 23 Mar 2021 15:19:18 +0100 Subject: [PATCH] Fixes #444: stdout is now line buffered when running commands --- src/terminal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal.cpp b/src/terminal.cpp index e278878..d900baa 100644 --- a/src/terminal.cpp +++ b/src/terminal.cpp @@ -273,7 +273,7 @@ std::shared_ptr Terminal::async_process(const std::stri stdin_buffer.clear(); auto process = std::make_shared( - command, path.string(), + "STDBUF1=L " + command, path.string(), [this, quiet](const char *bytes, size_t n) { if(!quiet) { // Print stdout message sequentially to avoid the GUI becoming unresponsive