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
Set ttymouse to "sgr" for screen #4146
Comments
Jordan Christiansen wrote:
According to my testing, ttymouse set to "sgr" works for tmux and
screen. Could we set ttymouse to "sgr" automatically when tmux or
screen is detected, similar to how xterm and other terminals are
detected?
Since what version do they work? And are these versions widespread?
…--
Bare feet magnetize sharp metal objects so they point upward from the
floor -- especially in the dark.
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|
That's a good question. I don't see this mentioned in tmux's documentation, but I'm trying to track down a commit where it was added. |
In tmux, support for SGR mouse escapes existed at least as early as tmux/tmux@67b4d5b, which was authored in 2013 and first released in tmux 1.8. Tmux 1.8 or later first appeared in Debian 8.0 "Jessie" in 2015. Alas, SGR mouse support seems to have been added to screen in this commit only last year, and it's not in a tagged version of screen yet. |
In tmux, support for SGR mouse escapes existed at least as early as
tmux/tmux@67b4d5b,
which was authored in 2013 and first released in tmux 1.8. Tmux 1.8 or
later first appeared in Debian 8.0 "Jessie" in 2015.
OK, we could enable sgr for tmux. There is similar code in term.c for
iterm2, mac and mintty.
Alas, SGR mouse support seems to have been added to screen in [this
commit](http://git.savannah.gnu.org/cgit/screen.git/commit/?id=fa3f485d6edbd71a80f40925d77259b490309c5f)
only last year, and it's not in a tagged version of screen yet.
Let's not enable it then, it can break things.
I wish terminals would advertise their features in a way Vim can ask for
it...
Let me merge FEAT_MOUSE_SGR into FEAT_MOUSE_XTERM, doesn't need to be so
controlled, the mouse codes don't interfere.
…--
I AM THANKFUL...
...for all the complaining I hear about the government
because it means we have freedom of speech.
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|
sgr support made it into a release of screen this month. It's already in Debian testing and should be in Debian 11, which will be released in a couple years. It should be in Ubuntu 20.04. |
Can we somehow recognize SGR support in screen is working? By the version response perhaps? |
I would like to investigate that and submit a patch if possible. How can I
check the version response? Screen has t_RV set by default but tmux does
not...but if I set t_RV to the same value as it is for screen I do get a
response.
I'll work on seeing if the version can tell us this. What sets t_RV? Can we
make sure that it's set for tmux?
…On Thu, Oct 10, 2019, 9:39 AM Bram Moolenaar ***@***.***> wrote:
Can we somehow recognize SGR support in screen is working? By the version
response perhaps?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4146?email_source=notifications&email_token=AASHXJRZOY6ZB5326BMCBQTQN45CNA5CNFSM4HAJJUAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA4TAFA#issuecomment-540618772>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASHXJRTL2TDG34TGJ3OG6DQN45CNANCNFSM4HAJJUAA>
.
|
tmux always returns I'll submit a patch for detecting screen's version and selectively enabling SGR mouse support. Once I figure out how to do that with tmux I'll do that as well. |
According to my testing, ttymouse set to "sgr" works for tmux and screen. Could we set ttymouse to "sgr" automatically when tmux or screen is detected, similar to how xterm and other terminals are detected?
The text was updated successfully, but these errors were encountered: