Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround for the confusion of 'escape key input + DSR reply' and 'LAlt-Shift-F3' #175

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Hamayama
Copy link

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.

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