From 3fc2c3529a7a185ffab811276bbfea487314d754 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 5 Jun 2023 20:34:31 +0300 Subject: [PATCH] Shell: load old termios for process execution --- userspace/Shell/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/userspace/Shell/main.cpp b/userspace/Shell/main.cpp index d88fb03f..17011b7b 100644 --- a/userspace/Shell/main.cpp +++ b/userspace/Shell/main.cpp @@ -177,7 +177,9 @@ int main(int argc, char** argv) fputc('\n', stdout); if (!buffers[index].empty()) { + tcsetattr(0, TCSANOW, &old_termios); execute_command(buffers[index]); + tcsetattr(0, TCSANOW, &new_termios); MUST(history.push_back(buffers[index])); buffers = history; MUST(buffers.emplace_back(""sv));