From c49bb5bedd2c08bf8f6c32af06bafca905d35d60 Mon Sep 17 00:00:00 2001 From: Kunal Khandelwal Date: Wed, 12 May 2021 12:57:16 +0530 Subject: [PATCH] Fix ouput display in child process (#32) --- src/loop.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/loop.cpp b/src/loop.cpp index 4038134..c7de3f6 100644 --- a/src/loop.cpp +++ b/src/loop.cpp @@ -212,8 +212,9 @@ void roosh_loop(std::istream &in) push_command(line); // execute all the commands specified in the line + tcsetattr(0, TCSANOW, &old); // restore original terminal settings bool status = roosh_launch(line); - + tcsetattr(0, TCSANOW, ¤t); // set the new settings history.insert(history.begin(), keyboard.buffer); historyCount++;