Skip to content

Only passthrough input changes if the client's in VT input mode#4913

Merged
DHowett-MSFT merged 3 commits intomasterfrom
dev/migrie/b/4911-this-is-a-hack
Mar 13, 2020
Merged

Only passthrough input changes if the client's in VT input mode#4913
DHowett-MSFT merged 3 commits intomasterfrom
dev/migrie/b/4911-this-is-a-hack

Conversation

@zadjii-msft
Copy link
Member

This is a hack to fix #4911. I cannot stress enough that I haven't tested this, but it's 5pm on a Friday here in Wisconsin, and I'm hoping that the rest of the team will validate this 😝

@zadjii-msft zadjii-msft added Area-VT Virtual Terminal sequence support Product-Conpty For console issues specifically related to conpty labels Mar 13, 2020
Copy link
Contributor

@DHowett-MSFT DHowett-MSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks sane to me. I'm going to test it, of course, but it looks sane to me.

@DHowett-MSFT
Copy link
Contributor

I did test this, and it works fine with SSH and doesn't break wsl mouse mode.

@DHowett-MSFT DHowett-MSFT changed the title Only passthrough input changes when the client is in VT input mode Only passthrough input changes if the client's in VT input mode Mar 13, 2020
@DHowett-MSFT DHowett-MSFT merged commit 57a80aa into master Mar 13, 2020
@DHowett-MSFT DHowett-MSFT deleted the dev/migrie/b/4911-this-is-a-hack branch March 13, 2020 22:44
carlos-zamora added a commit that referenced this pull request Apr 16, 2020
ghost pushed a commit that referenced this pull request Apr 17, 2020
## Summary of the Pull Request
Adds SS3 cursor encoding for cursor keys and home/end button. Reverts a portion of #4913 that checks for VT Input Mode.

## PR Checklist
* [X] Closes #4873

## Validation Steps Performed
1. Open pwsh
2. run `wsl`
3. execute `printf "\e[?1h"`
4. verify keys work
5. exit back to pwsh
6. verify keys work still (didn't previously)

Also verified that those keys work in vim when connected to my Raspberry Pi over SSH.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-VT Virtual Terminal sequence support Product-Conpty For console issues specifically related to conpty

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VT input tunneling breaks some applications that use VT_PROCESSING but not VT_INPUT

4 participants