Starting point for copy selection remains anchored when using a mouse-aware application #15308

Open
opened 2026-01-31 04:34:36 +00:00 by claunia · 0 comments
Owner

Originally created by @penguin359 on GitHub (Sep 22, 2021).

Windows Terminal version (or Windows build number)

1.10.2383.0

Other Software

vim 8.1 (inside WSL with mouse support)
tmux 3.0a (inside WSL with mouse support)

Steps to reproduce

This issue can be produced with either Vim or Tmux. With vim, do the following:

  1. Open any file in Vim.
    $ vim ~/.bashrc
  2. Enable mouse support.
    :set ttymouse=xterm2
    :set mouse=a
  3. At this point, regular mouse events go to the app. However, if I want to use Windows Terminal to copy/paste something, I can hold down Shift when using the mouse. Highlight some word on the screen.
  4. Try highlighting a different word/line instead.

The same can be replicated in Tmux:

  1. Open tmux
    $ tmux new
  2. Enable mouse support
    Ctrl-b :
    set -g -q mouse on
  3. Proceed the same as step 3 above.

Expected Behavior

I am expecting for Shift to allow me to send mouse events to Windows Terminal and have it act the same as if I was using the mouse normally, but without a mouse-aware terminal program. I am looking for a way have a mouse-aware terminal app running, but still have the option to use the Windows Terminal's mouse support for copy/pasting text as needed.

I spend most of my time inside tmux using multiple panes and heavy use of it's mouse support to switch panes, but still need to access Windows Terminal for certain copy/paste operations.

Other terminal apps that do the expected behavior include PuTTY on Windows with it's interaction with Shift allowing me to control PuTTY instead of sending the mouse event to tmux/vim and Gnome Terminal on Linux though it uses Control for the same purpose. I believe iTerm2 on macOS also implements this behavior, but with Alt. I have not found any modified key for Windows Terminal that allows me to use the mouse unencumbered in this situation.

Actual Behavior

Once I make the first selection. The starting point of that selection remains anchored there during repeated attempts to adjust what is highlighted. This occurs quite often when I miss the correct character position on screen that I need for the starting point often causing it to get truncated when I finally hit Copy. On the next Copy operation, I can select a new starting point, but I have to hit Copy each time I want to change the anchor point if it doesn't start where I want it it.

Originally created by @penguin359 on GitHub (Sep 22, 2021). ### Windows Terminal version (or Windows build number) 1.10.2383.0 ### Other Software vim 8.1 (inside WSL with mouse support) tmux 3.0a (inside WSL with mouse support) ### Steps to reproduce This issue can be produced with either Vim or Tmux. With vim, do the following: 1. Open any file in Vim. $ vim ~/.bashrc 2. Enable mouse support. :set ttymouse=xterm2 :set mouse=a 3. At this point, regular mouse events go to the app. However, if I want to use Windows Terminal to copy/paste something, I can hold down Shift when using the mouse. Highlight some word on the screen. 4. Try highlighting a different word/line instead. The same can be replicated in Tmux: 1. Open tmux $ tmux new 2. Enable mouse support Ctrl-b : set -g -q mouse on 3. Proceed the same as step 3 above. ### Expected Behavior I am expecting for Shift to allow me to send mouse events to Windows Terminal and have it act the same as if I was using the mouse normally, but without a mouse-aware terminal program. I am looking for a way have a mouse-aware terminal app running, but still have the option to use the Windows Terminal's mouse support for copy/pasting text as needed. I spend most of my time inside tmux using multiple panes and heavy use of it's mouse support to switch panes, but still need to access Windows Terminal for certain copy/paste operations. Other terminal apps that do the expected behavior include PuTTY on Windows with it's interaction with Shift allowing me to control PuTTY instead of sending the mouse event to tmux/vim and Gnome Terminal on Linux though it uses Control for the same purpose. I believe iTerm2 on macOS also implements this behavior, but with Alt. I have not found any modified key for Windows Terminal that allows me to use the mouse unencumbered in this situation. ### Actual Behavior Once I make the first selection. The starting point of that selection remains anchored there during repeated attempts to adjust what is highlighted. This occurs quite often when I miss the correct character position on screen that I need for the starting point often causing it to get truncated when I finally hit Copy. On the next Copy operation, I can select a new starting point, but I have to hit Copy each time I want to change the anchor point if it doesn't start where I want it it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15308