Workaround for the confusion of 'escape key input + DSR reply' and 'LAlt-Shift-F3'#175
Open
Hamayama wants to merge 1 commit intorprichard:masterfrom
Open
Workaround for the confusion of 'escape key input + DSR reply' and 'LAlt-Shift-F3'#175Hamayama wants to merge 1 commit intorprichard:masterfrom
Hamayama wants to merge 1 commit intorprichard:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello.
I'm using a text editor on mintty+winpty.
I noticed that sometimes escape key combination (such as Escape-<) becomes not to work.
I checked it with winpty-debugserver.exe and understood that winpty
sends DSR (Device Status Report) command after receiving escape key input.
Then, I found that If escape key is input and soon DSR reply is received,
it might match to LAlt-Shift-F3, LAlt-F3, LAlt-LCtrl-F3, and so on.
(These matches occur only when the cursor position (lines, cols) is
in the range of (1, 2) to (1, 8).)
(e.g.
^[ ^[ [ 1 ; 2 R= 'escape key input + DSR reply' = 'LAlt-Shift-F3')After these matches, winpty becomes not to send DSR command and
escape key input becomes to delay one second every time.
I tried to make a workaround of this issue.