diff --git a/userspace/Shell/main.cpp b/userspace/Shell/main.cpp index d88fb03fd9..17011b7bf3 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));