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:
parent
ef8ba20bee
commit
1d33429673
|
@ -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();
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue