Skip to content

Color contamination fix - #1527

Merged
Akinwale Alagbe (hackean-msft) merged 8 commits into
masterfrom
user/akalagbe/color-contamination-fix-2
Oct 7, 2021
Merged

Akinwale Alagbe (hackean-msft) merged 8 commits into
masterfrom
user/akalagbe/color-contamination-fix-2

Conversation

@hackean-msft

@hackean-msft Akinwale Alagbe (hackean-msft) commented Sep 29, 2021 •

Copy link
Copy Markdown
Contributor

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

}

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

Copy link
Copy Markdown
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