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));