Select text in tmux under rxvt-unicode (urxvt)


Brian

I've only recently started experimenting with a urxvtterminal emulator instead xterm. I'm a heavy tmuxuser so had to get the two to work together seamlessly.

I've noticed that when running tmuxinternally urxvt, there is some strange behavior when selecting text. I hold the Shift key and select the text with the mouse, it's highlighted in yellow (as if TMUX is still processing it), but with a flickering, flickering black background - as if competing urxvtwith tmuxthe control for selection. Does that make sense?

I've tested with zero (except enabling the mouse tmux) both individual configuration options tmuxand urxvt.

In xterm, when I hold down the shift key and select the text, I notice that it is highlighted in inverse color (as opposed to tmux's yellow background). In urxvt, the selected text still seems to be affected tmux.

Any ideas on how to fix this weird behavior?

I'd even be interested in some tips or keywords on how to spot problems here. Any developer familiar with the codebase knows why mouse selection works well xtermbut not with urxvtterminology?

Material

Thanks to nicm from this issue in the tmux github repo, the problem you describe was solved for me (urxvt for tmux 2.1 and 9.21):

When dragging, you can disable tmux from entering copy mode by unbinding the MouseDrag1Pane keybinding.

In .tmux.conf, add:

unbind -n MouseDrag1Pane

Related


Select text in tmux under rxvt-unicode (urxvt)

Brian I've only recently started experimenting with a urxvtterminal emulator instead xterm. I'm a heavy tmuxuser so had to get the two to work together seamlessly. I've noticed that when running tmuxinternally urxvt, there is some strange behavior when selecti

Select text in tmux under rxvt-unicode (urxvt)

Brian I've only recently started experimenting with a urxvtterminal emulator instead xterm. I'm a heavy tmuxuser so had to get the two to work together seamlessly. I've noticed that when running tmuxinternally urxvt, there is some strange behavior when selecti

Select text in tmux under rxvt-unicode (urxvt)

Brian I've only recently started experimenting with a urxvtterminal emulator instead xterm. I'm a heavy tmuxuser so had to get the two to work together seamlessly. I've noticed that when running tmuxinternally urxvt, there is some strange behavior when selecti

Italics in Emacs on text terminal (rxvt-unicode)

Igor I'm using Emacs running in urxvt and I can't get italics to work in Emacs despite terminal support. Here is my current setup: I haven't set it yet $TERM, so it's the default rxvt-unicode-256color. Mine is ~/.Xdefaultsdefined URxvt.font: xft:Inconsolata:si

Italics in Emacs on text terminal (rxvt-unicode)

Igor I'm using Emacs running in urxvt and I can't get italics to work in Emacs despite terminal support. Here is my current setup: I haven't set it yet $TERM, so it's the default rxvt-unicode-256color. Mine is ~/.Xdefaultsdefined URxvt.font: xft:Inconsolata:si

Is there a (lightweight) alternative to `rxvt-unicode`?

Buffalo I am currently rxvt-unicodeusing as a terminal emulator. Since I also like the configurability of GNOME and KDE's terminal emulators, I'm wondering if there is some sort of alternative that can replace GNOME or KDE Terminal, but rxvt-unicodewith more f

Is there a (lightweight) alternative to `rxvt-unicode`?

Buffalo I am currently rxvt-unicodeusing as a terminal emulator. Since I also like the configurability of GNOME and KDE's terminal emulators, I'm wondering if there is some sort of alternative that can replace GNOME or KDE Terminal, but rxvt-unicodewith more f

Is there a (lightweight) alternative to `rxvt-unicode`?

Buffalo I am currently rxvt-unicodeusing as a terminal emulator. Since I also like the configurability of GNOME and KDE's terminal emulators, I'm wondering if there is some sort of alternative that would replace GNOME or KDE Terminal, but rxvt-unicodewith more

Select text in Tmux copy mode

蝠 ta I am running Tmux in Vi mode. Vi-like navigation in copy mode works well. However, I cannot select any text. Neither v nor V will switch to Vi-like text selection mode. What am I missing? By the way, is it possible to display line numbers in copy mode? PS

Select text in Tmux copy mode

蝠 ta I am running Tmux in Vi mode. Vi-like navigation in copy mode works well. However, I cannot select any text. Neither v nor V will switch to Vi-like text selection mode. What am I missing? By the way, is it possible to display line numbers in copy mode? PS

rxvt-unicode does not display unicode characters

random document I don't understand why rxvt-unicodesome unicode characters are not displayed correctly, like ☁or ☂both ⚡. As shown in the screenshot, these symbols are replaced by a small box: Here is my locale: LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_CTYPE=

rxvt-unicode does not display unicode characters

random document I don't understand why rxvt-unicodesome unicode characters are not displayed correctly, like ☁or ☂both ⚡. As shown in the screenshot, these symbols are replaced by a small box: Here is my locale: LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_CTYPE=

rxvt-unicode does not display unicode characters

random document I don't understand why rxvt-unicodesome unicode characters are not displayed correctly, like ☁or ☂both ⚡. As shown in the screenshot, these symbols are replaced by a small box: Here is my locale: LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_CTYPE=

Select the text under the pointer

Photon Storm Does anyone know if it's possible to get the text the mouse pointer hovers over on a webpage ? Some assumptions can be made: The web page will only contain text, no images. minimal style. The content is all from the same domain, no COR or iFrame i

Select the text under the pointer

Photon Storm Does anyone know if it's possible to get the text the mouse pointer hovers over on a webpage ? Some assumptions can be made: The web page will only contain text, no images. minimal style. The content is all from the same domain, no COR or iFrame i

Set new icon for rxvt-unicode

Charles S I am trying to use numix icons for rxvt-unicode. I didn't find an up-to-date discussion on this topic, but the ones I'm following are: https://bbs.archlinux.org/viewtopic.php?id=166210 My /.Xdefaults looks like: URxvt*iconFile: /usr/share/icons/Numix

Map-Shift-Tab in rxvt-unicode

Mark I want to map keybindings Ctrl++ to Shift. I managed to map + as follows. The corresponding entry isTabrxvt-unicodeCtrlTab.Xresources URxvt.keysym.Control-Tab: \033[27;5;9~ Confirm that this mapping is valid using :cat -v $ cat -v ^[[27;5;9~ ^[[27;5;9~T

rxvt-unicode-make fails with missing dependencies

Sebastian I'm trying to learn more about linux by exploring r/unixporn. I'm running on Debian Jessie Xfce and have the following: apt-get install libperl-dev git clone https://github.com/exg/rxvt-unicode.git ./configure --prefix=/usr --enable-everything && mak

Define color codes in rxvt-unicode

Sahinism Using some node.jstools like mochain my urxvtterminal, I have some problems with colored output. As you can see here , some text with color code 90 will disappear in the terminal. tput colorsThe output is: 256 and use the following command: (x=`tput o

Set new icon for rxvt-unicode

Charles S I am trying to use numix icons for rxvt-unicode. I didn't find an up-to-date discussion on this topic, but the ones I'm following are: https://bbs.archlinux.org/viewtopic.php?id=166210 My /.Xdefaults looks like: URxvt*iconFile: /usr/share/icons/Numix

Map-Shift-Tab in rxvt-unicode

Mark I want to map keybindings Ctrl++ to Shift. I managed to map + as follows. The corresponding entry isTabrxvt-unicodeCtrlTab.Xresources URxvt.keysym.Control-Tab: \033[27;5;9~ Confirm that this mapping is valid using :cat -v $ cat -v ^[[27;5;9~ ^[[27;5;9~T

rxvt-unicode-make fails with missing dependencies

Sebastian I'm trying to learn more about linux by exploring r/unixporn. I'm running on Debian Jessie Xfce and have the following: apt-get install libperl-dev git clone https://github.com/exg/rxvt-unicode.git ./configure --prefix=/usr --enable-everything && mak

Set new icon for rxvt-unicode

Charles S I am trying to use numix icons for rxvt-unicode. I didn't find an up-to-date discussion on this topic, but the ones I'm following are: https://bbs.archlinux.org/viewtopic.php?id=166210 My /.Xdefaults looks like: URxvt*iconFile: /usr/share/icons/Numix

tmux copy mode - select block of text

Srećko Toroman I'm using tmux with the vi key and copy/paste works fine as long as you select a line of text or only one window. I run into trouble when I want to select a block of text (multi-line, but not full-width). If I have multiple vim windows open then

Select tmux and text with mouse using putty

US I am running tmux on a putty session. Usually (just running a normal shell or GNU screen) to select text, I just click and drag the mouse over some text. Using tmux, I have to select text with the mouse while holding down the shift key. How can I get back "

tmux copy mode - select block of text

Srećko Toroman I'm using tmux with the vi key and copy/paste works fine as long as you select a line of text or only one window. I run into trouble when I want to select a block of text (multi-line, but not full-width). If I have multiple vim windows open then

Select tmux and text with mouse using putty

us I am running tmux on a putty session. Usually (just running a normal shell or GNU screen) to select text, I just click and drag the mouse over some text. Using tmux, I have to select text with the mouse while holding down the shift key. How can I get back "