Update RIS to reset mouse mode and encoding (#10602)

## Summary of the Pull Request

RIS resets mouse mode and encoding

## PR Checklist
* [x] Closes #8613 
* [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA
* [ ] Tests added/passed
* [ ] Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx
* [ ] Schema updated.
* [x] I work here

## Validation Steps Performed
This commit is contained in:
PankajBhojwani 2021-07-12 11:50:05 -07:00 committed by GitHub
parent ef8ba20bee
commit 1d33429673
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -733,6 +733,10 @@ bool TerminalDispatch::HardReset() noexcept
// Cursor to 1,1 - the Soft Reset guarantees this is absolute
success = CursorPosition(1, 1) && success;
// Reset the mouse mode
success = EnableSGRExtendedMouseMode(false);
success = EnableAnyEventMouseMode(false);
// Delete all current tab stops and reapply
_ResetTabStops();

View file

@ -1922,6 +1922,10 @@ bool AdaptDispatch::HardReset()
// Cursor to 1,1 - the Soft Reset guarantees this is absolute
success = CursorPosition(1, 1) && success;
// Reset the mouse mode
success = EnableSGRExtendedMouseMode(false);
success = EnableAnyEventMouseMode(false);
// Delete all current tab stops and reapply
_ResetTabStops();