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

Enable SGR mouse support on mintty #3667

Closed
wants to merge 1 commit into from

Conversation

k-takata
Copy link
Member

@k-takata k-takata commented Dec 6, 2018

This was originally discussed at mintty/mintty#827.

Currently 'ttymouse' is set to "xterm" even mintty supports SGR mouse mode.
I think it is useful if Vim detects mintty and set 'ttymouse' to "sgr" automatically.

mintty 2.9.5 returns ESC[>77;20905;0c to v:termresponse. (77 is ASCII 'M'.)
This PR detects mintty by checking 77;.

Detect mintty and set 'ttymouse' to "sgr" automatically.
@codecov-io
Copy link

Codecov Report

Merging #3667 into master will decrease coverage by <.01%.
The diff coverage is 40%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3667      +/-   ##
==========================================
- Coverage    77.4%    77.4%   -0.01%     
==========================================
  Files          99       99              
  Lines      139423   139427       +4     
==========================================
- Hits       107924   107923       -1     
- Misses      31499    31504       +5
Impacted Files Coverage Δ
src/term.c 60.34% <40%> (-0.08%) ⬇️
src/gui_gtk_x11.c 48.5% <0%> (-0.59%) ⬇️
src/if_xcmdsrv.c 83.63% <0%> (-0.54%) ⬇️
src/ex_docmd.c 79.75% <0%> (+0.01%) ⬆️
src/ex_cmds.c 80% <0%> (+0.02%) ⬆️
src/undo.c 83.18% <0%> (+0.06%) ⬆️
src/gui.c 58.06% <0%> (+0.51%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 10600db...f730ff5. Read the comment docs.

@brammool brammool closed this in 20091c1 Dec 7, 2018
@k-takata k-takata deleted the enable-sgr-on-mintty branch December 8, 2018 00:38
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.

None yet

2 participants