[flutter_tools] return terminal to echo and line mode before exiting resident_runner (#105283)

This commit is contained in:
Christopher Fujino
2022-06-06 10:19:40 -07:00
committed by GitHub
parent c181e450c8
commit 712752d2fb
2 changed files with 52 additions and 4 deletions

View File

@@ -716,6 +716,10 @@ class RunCommand extends RunCommandBase {
throwToolExit('Lost connection to device.');
}
rethrow;
} finally {
// However we exited from the runner, ensure the terminal has line mode
// and echo mode enabled before we return the user to the shell.
globals.terminal.singleCharMode = false;
}
return FlutterCommandResult(
ExitStatus.success,