Skip to content
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

Color contamination fix #1527

Merged
merged 8 commits into from
Oct 7, 2021
Merged

Conversation

hackean-msft
Copy link
Contributor

@hackean-msft hackean-msft commented Sep 29, 2021

Reset console to default color when user force quits(hits ctrl + c twice) during execution.
Channel all console output write operations only through OutputStream/BaseStream wrappers.
Deleted NoVTStream.

Microsoft Reviewers: Open in CodeFlow

@hackean-msft hackean-msft requested a review from a team as a code owner September 29, 2021 23:54
src/AppInstallerCLICore/ChannelStreams.h Outdated Show resolved Hide resolved
src/AppInstallerCLICore/ChannelStreams.cpp Show resolved Hide resolved
}

NoVTStream& operator<<(std::ostream& (__cdecl* f)(std::ostream&));
NoVTStream& operator<<(const VirtualTerminal::Sequence& sequence) = delete;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other thing that the NoVTStream did was make it a compile error to attempt to output a VT sequence. Not the end of the world to not have it, but I do like the very early notification that it won't work.

@ghost ghost added the Needs-Author-Feedback Issue needs attention from issue or PR author label Oct 1, 2021
@ghost ghost removed the Needs-Author-Feedback Issue needs attention from issue or PR author label Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Color contamination to the console if the program was terminated by Ctrl+C
2 participants