|
@@ -568,9 +568,12 @@ int Shell::run_command(const StringView& cmd, Optional<SourcePosition> source_po
|
|
}
|
|
}
|
|
|
|
|
|
tcgetattr(0, &termios);
|
|
tcgetattr(0, &termios);
|
|
|
|
+ tcsetattr(0, TCSANOW, &default_termios);
|
|
|
|
|
|
command->run(*this);
|
|
command->run(*this);
|
|
|
|
|
|
|
|
+ tcsetattr(0, TCSANOW, &termios);
|
|
|
|
+
|
|
if (!has_error(ShellError::None)) {
|
|
if (!has_error(ShellError::None)) {
|
|
possibly_print_error();
|
|
possibly_print_error();
|
|
take_error();
|
|
take_error();
|