Created attachment 1472017 [details] test case Description of problem: The combination ALT - mouse click doesn't work in FC28 in terminal applications. It was working in previous releases. The mouse event is processed, but the information about press the ALT key is lost. It is working when I connect from GUI to any older server by ssh. Version-Release number of selected component (if applicable): How reproducible: You can use pspg pager https://github.com/okbob/pspg where ALT + double click should to toggle bookmarks. Or you can check ncurses code the check of event.bstate & BUTTON_ALT is newer true. Steps to Reproduce: 1. compile gcc mouse_error.c -lncursesw 2. run it 3. click somewhere, try to click with ALT Actual results: this code doesn't stop on ALT click Expected results: stop on ALT click Additional info:
I tested some others terminals, and it works on mrxvt terminal. And doesn't work with xterm too.
For reference, upstream discussion is here: http://lists.gnu.org/archive/html/bug-ncurses/2018-07/msg00017.html It would be interesting to try to bisect the change (ncurses snapshot) that caused it to stop working.
looks like term definition issue - I am not a expert on this area. export TERM=rxvt fix this isse. So maybe some wrong is in xterm* definition.
I started investigating this yesterday, will report when it's resolved.
It was something that I overlooked when coding the SGR-1006 logic in the mouse feature of ncurses. I'd updated descriptions for terminals which support it in January. rxvt probably will never support that feature, and no one has demonstrated interest in urxvt's similar feature by sending a working patch for it.
Thanks for the fix.
ncurses-6.1-8.20180923.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-d1049d9af2
ncurses-6.1-8.20180923.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-d1049d9af2
I tested it on Fedora 29 ncurses version: 6.1, patch: 20180923 and it the behave was not changed. It is not fixed.
I tested by modifying xterm's translations to permit space, control and alt, using the ncurses test-program.
(that's the original source, of course - the package "should" be the same).
I was wrong, I am sorry. The attached program works well. Thank you. But still it doesn't work with BUTTON5 and BUTTON4. Please, check test case with repleaced BUTTON1 by BUTTON4 or BUTTON5.
I can see that the wheel-mouse does not combine as expected (will investigate).
ncurses-6.1-8.20180923.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.