Shift-click shouldn't extend the selection in VT mouse more #14885

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

Originally created by @angelog0 on GitHub (Aug 17, 2021).

Windows Terminal version (or Windows build number)

19043.1165

This occurs wit WT-1.9.1942.0 and both with Emacs-27-2 (nox) and NOX builds from master (Emacs28), i.e. running Emacs (from MSYS2 or WSL packages) in WT.

I added this to the init.el file:

(setq mouse-drag-copy-region t)

This means that selecting text double clicking with the mouse or dragging it [*] should copy the selection to the clipboard and it allows for pasting the selection in other apps.

This does not work when running Emacs, MSYS2 package or WSL builds, in WT.

It DOES WORK when running the same app from MinTTY (MSYS2 or WSL + Emacs nox).

BTW, it works also in Termux+Emacs nox on Android.

So the issue seems related to WT.


[*] Remember that when running Emacs in a terminal, you have to hold down the SHIFT key while clicking or dragging.

Originally created by @angelog0 on GitHub (Aug 17, 2021). ### Windows Terminal version (or Windows build number) 19043.1165 This occurs wit WT-1.9.1942.0 and both with Emacs-27-2 (nox) and NOX builds from master (Emacs28), i.e. running Emacs (from MSYS2 or WSL packages) in WT. I added this to the `init.el` file: ``` (setq mouse-drag-copy-region t) ``` This means that selecting text double clicking with the mouse or dragging it [*] should copy the selection to the clipboard and it allows for pasting the selection in other apps. This does not work when running Emacs, MSYS2 package or WSL builds, in WT. It DOES WORK when running the same app from MinTTY (MSYS2 or WSL + Emacs nox). BTW, it works also in Termux+Emacs nox on Android. So the issue seems related to WT. ----- [*] Remember that when running Emacs in a terminal, you have to hold down the SHIFT key while clicking or dragging.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14885