Skip to content

Fix toggle behavior of DisableVirtualTerminal#4

Open
alan-b-lima wants to merge 1 commit into
snugfox:masterfrom
alan-b-lima:master
Open

Fix toggle behavior of DisableVirtualTerminal#4
alan-b-lima wants to merge 1 commit into
snugfox:masterfrom
alan-b-lima:master

Conversation

@alan-b-lima

Copy link
Copy Markdown

The function DisableVirtualTerminal for Windows toggles the ENABLE_VIRTUAL_TERMINAL_PROCESSING flag on mode, due to an XOR operation (^). It was fix by changing it to an AND NOT operation (&^), so that the ENABLE_VIRTUAL_TERMINAL_PROCESSING flag on mode is always set to zero regardless of its previous state.

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.

1 participant