-
Notifications
You must be signed in to change notification settings - Fork 29.7k
[flutter_tools] return terminal to echo and line mode before exiting resident_runner #105283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[flutter_tools] return terminal to echo and line mode before exiting resident_runner #105283
Conversation
zanderso
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm w/ question
| } 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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the resident runner modify any other modes that should be reset?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this is actually a convenience setter around two modes:
if (value) {
stdin.echoMode = false;
stdin.lineMode = false;
} else {
stdin.lineMode = true;
stdin.echoMode = true;
}
I'll take one more pass at the code to check for anything else suspicious, however.
|
FYI @aam |
…exiting resident_runner (flutter/flutter#105283)
…exiting resident_runner (flutter/flutter#105283)
…exiting resident_runner (flutter/flutter#105283)
…exiting resident_runner (flutter/flutter#105283)
…exiting resident_runner (flutter/flutter#105283)
…exiting resident_runner (flutter/flutter#105283)
…exiting resident_runner (flutter/flutter#105283)
…exiting resident_runner (flutter/flutter#105283)
…exiting resident_runner (flutter/flutter#105283)
…exiting resident_runner (flutter/flutter#105283)
…exiting resident_runner (flutter/flutter#105283)
…exiting resident_runner (flutter/flutter#105283)
…exiting resident_runner (flutter/flutter#105283)
Fixes #105255