diff --git a/Userland/Shell/Shell.cpp b/Userland/Shell/Shell.cpp index 2c2a5fff29..828b9f1c0c 100644 --- a/Userland/Shell/Shell.cpp +++ b/Userland/Shell/Shell.cpp @@ -568,9 +568,12 @@ int Shell::run_command(const StringView& cmd, Optional source_po } tcgetattr(0, &termios); + tcsetattr(0, TCSANOW, &default_termios); command->run(*this); + tcsetattr(0, TCSANOW, &termios); + if (!has_error(ShellError::None)) { possibly_print_error(); take_error();