-
Notifications
You must be signed in to change notification settings - Fork 19
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
Mouse copying #53
Comments
Apparently I should try that and see what it does to marking text. |
Yay for being able to run the latest Ubuntu in Docker! |
These are the options I can come up with around the mouse experience:
|
Another workaround: in iTerm2, if you disable "Report mouse clicks & drags" in the preferences, under Profiles / Terminal, copying will work well. |
Just an FYI, none of these workarounds do anything in MacOS's Terminal.app |
Just added this text, does this help @thepeoplesbourgeois?
|
I am using Hyper on mac, and neither holding alt nor holding fn works here :( |
Try setting
|
ah yes, that works, thanks a lot! |
just to add to the list of workarounds: in Alacritty, you have to use use |
With Wezterm, on macOS, I could not find a workaround to select text, or open URLs with the mouse. I have tried the ones listed above. I think the relevant configuration for this issue is this: https://wezfurlong.org/wezterm/config/lua/config/bypass_mouse_reporting_modifiers.html#bypass_mouse_reporting_modifiers--shift . |
@brunoroque06 the reason it didn't work for you was likely wez/wezterm#2389. Can you find a wezterm build that isn't affected by that issue and try again? |
@walles ah nice, it works on the nightly build. Thanks. One has to press |
I also experience the issue that I cannot mark anything with my mouse on Ubuntu. I use the terminal emulator Terminator. As a workaround, I can hold the shift button to actually mark text. |
For anyone else wondering, on kitty, |
|
Same thing for Konsole ❤️ |
yes but why do we need shift and not just click?? |
Maybe you should ask the Tilix authors? They could probably shed further light on this. Basically Don't know why a lot of terminals disable mouse copying when reporting scroll events. In iTerm this is configurable so that you can copy without holding down any special button. Comparing to |
In
By default it's Shift, in my example it's set to Alt |
Relates to #53, will make things better on some terminals.
In Contour it's Shift by default. Using |
One more data point. I'm on MacOS/MacBook Pro and use an external keyboard (and monitor) and the Fn key on the external keyboard and click does not work to select text. The work around is to open the laptop enough to hold down the Fn key on the laptop keyboard and click. My external keyboard is a Razer BlackWidow Tournament Stealth Edition. I haven't tried other keyboards. (Oh, and I'm using the Colemak key layout.) |
This text is now maintained here:
https://github.com/walles/moar/blob/master/MOUSE.md
--
At least on my Mac, if I want to copy something using the mouse i need to hold alt while marking for the mark to work.
The reason is that
moar
requests mouse events from the terminal, and that makes the terminal not accept mark / copy any more.less --mouse
has the same problems, see comments.Workarounds
macOptionSelectionMode: 'force'
in your config file, then hold the Option Key ⌥ while markingless
' screen initialization sequenceRecorded using iTerm's Automatically log session input to files feature.
less
is version 487 that comes with macOS 11.3 Big Sur.All linebreaks are mine, added for readability. The
^M
s are not.moar
's screen initialization sequenceAnalysis of
less
The line starting with
^G
is probably from fromfish
since it's the same for bothless
andmoar
.<ESC>[?1049h
switches to the Alternate Screen Buffer, search here for1 0 4 9
for info.Then
less
does[?1h
, which apparently is DECCKM Cursor Keys Mode, send ESC O A for cursor up, followed by=
, meaning DECKPAM - Set keypad to applications mode (ESCape instead of digits).NOTE that this means that
less
version 487 that comes with macOS 11.3 Big Sur doesn't even try to enable any mouse reporting, but relies on the terminal to convert scroll wheel events into arrow keypresses.Analysis of
moar
Same as
less
up until the Alternate Screen Buffer is enabled.<ESC>[?1006;1000h
enables SGR Mouse Mode and the X11 xterm mouse protocol (search for1 0 0 0
).<ESC>[?25l
hides the cursor. NOTE Maybe we don't need this? It might be implicit when we enable the Alternate Screen Buffer.<ESC>[1;1H
moves the cursor to the top left corner.Then it's the first line with its line number in faint type.
The text was updated successfully, but these errors were encountered: