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

Unable to override tmux mouse mode in jupyterlab terminal #13005

Open
saurabhbelsare opened this issue Aug 25, 2022 · 4 comments
Open

Unable to override tmux mouse mode in jupyterlab terminal #13005

saurabhbelsare opened this issue Aug 25, 2022 · 4 comments

Comments

@saurabhbelsare
Copy link

saurabhbelsare commented Aug 25, 2022

Description

I use tmux with mouse mode (set -g mouse on in .tmux.conf) in my regular terminal (iTerm2 on MacOS). Whenever I need to select some text, I override the mouse mode with the option key as outlined in this stack overflow post.

If I open the jupyterlab inbuilt terminal, and open a tmux session within that terminal, the mouse mode override does not work by using the option key (or by using any of the other options suggested in that stackoverflow post like Fn, Shift, or command). I am hence unable to select any text inside the jupyterlab inbuilt terminal when using tmux.

This problem, however, does not happen when I open a terminal in the Classic Notebook. In a terminal in the classic notebook, I can select by overriding the mouse mode with the option key.

Do you have any idea of why the tmux mouse mode override doesn't work in the jupyterlab terminal, and how should I fix this?

Thank you!

Reproduce

  1. Start a tmux session inside my regular terminal app (iTerm2 on MacOS)
  2. Select text inside that tmux session with mouse by overriding mouse mode by holding down the option key -> This does work
  3. Open jupyterlab.
  4. Open a teminal inside jupyterlab
  5. Start a tmux session within that terminal.
  6. Select text inside that tmux session with a mouse by overriding mouse mode by holding down the option key -> This does not work.
  7. Open Classic Notebook in jupyterlab
  8. Open a new terminal from the Classic Notebook menu
  9. Start a tmux session within that terminal
  10. Select text inside that tmux session with mouse by overriding mouse mode by holding down the option key -> This does work.

Expected behavior

Mouse selection by mouse mode override within tmux should work the same for the terminal within the jupyterlab app as it does for my regular terminal app (iTerm2 on MacOS) and the terminal opened from the Classic Notebook in jupyterlab.

Context

  • Operating System and version: MacOS Monterey
  • Browser and version: Brave Version 1.42.97
  • JupyterLab version: 3.4.5
@welcome
Copy link

welcome bot commented Aug 25, 2022

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@jupyterlab-probot jupyterlab-probot bot added the status:Needs Triage Applied to new issues that need triage label Aug 25, 2022
@JasonWeill JasonWeill added pkg:terminal and removed status:Needs Triage Applied to new issues that need triage labels Sep 1, 2022
@krassowski
Copy link
Member

@saurabhbelsare would you mind checking if it worked as intended in older versions of JupyterLab (3.1, 3.2 and 3.3)? I wonder if this might be a regression in xterm.js (which was just upgraded to fix another issue, see #12974).

@saurabhbelsare
Copy link
Author

saurabhbelsare commented Sep 1, 2022

Hi @krassowski

I tried with jupyterlab 3.3.4, 3.2.9, and 3.1.19. For all of them, I'm seeing the exact same behaviour as outlined above for 3.4.5. Mouse mode override works in tmux if opened in a Classic Notebook, but not if I open a terminal directly in the main jupyterlab.

@saurabhbelsare
Copy link
Author

Hi, I was wondering whether there was any update on this, and whether it would be doable?
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants