3 ms·
Different people want different features. There's no way they're going to remain minimal and please everyone. They have to choose the feature set, and if othe
by pmoriarty 10y ago
Different people want different features. There's no way they're going to remain minimal and please everyone.
They have to choose the feature set, and if other programs can provide a feature that some users want, that seems like a feature ripe for pruning. I think they made the right choice.
- aidenn0 10y agoI always find tmux's scrollback to be vastly inferior to a native terminal's though. There are several reasons, but the biggest is that I'm pretty sure it's not possible to get more than a screenfull of text to my local X11 PRIMARY selection.
- fiddlerwoaroof 10y agoI know that there is an option for integrating tmux's internal clipboard with X11's but I haven't bothered with them because I prefer to keep the clipboards of the various terminal apps I use separate.
- fpqc 10y agoIt depends ultimately on the terminal to support it though. Only Linux terminals that support it atm are xterm and (u)rxvt, and there is an out-of-tree patch for st that I made (though it was rejected for being too long (around 40 lines).
- pmoriarty 10y agoI just use tmux's native copy/paste mechanism, using the keyboard. Using that it's possible to get the full scrollback buffer, or any part of it.
- aidenn0 10y agoAnd I want to paste it into a non-terminal application running locally while the tmux is on a remote host?
- fiddlerwoaroof 10y agoYou can always use ssh and something like xclip or pbcopy. Also, I always use mosh for ssh (when possible) so that I can recover my connection if I run into network issues. Since mosh works by synchronizing a virtual screen, I don't get scrollback at all without tmux or the like.
- jacobush 10y agoThis. I like terminal scrollback but it's gone for me.
- fpqc 10y agoI just added a feature to tmux-git that makes the tmux clipboard propagate up into higher clipboards for nested tmux. https://github.com/tmux/tmux/commit/4ede35c48c089abe3fca0d94dbeac44b2ac442a1 https://github.com/tmux/tmux/commit/4ede35c48c089abe3fca0d94... Keep in mind that your terminfo has to support this, so make sure your ncurses-term package is the latest release from Jan 28. I also made a patch for st to support OSC 52 propagation into Xorg, but it was rejected by the st maintainers because it uses base64 (as the OSC de-facto spec from xterm dictates). The patch for st is however in a branch of the Wayland-fork of st https://github.com/michaelforney/st/tree/selection https://github.com/michaelforney/st/tree/selection Another option if you use nested copies of tmux is to use this feature to get the remote clipboard into the local one, then yank with xclip.
- jdormit 10y ago'xclip -selection clipboard' works fine for this use case. [Edit] Assuming you have SSH configured to forward to your local X server [0]. [0] http://unix.stackexchange.com/a/16697 http://unix.stackexchange.com/a/16697
- aidenn0 10y agoUnfortunately many ssh servers gratuitously disallow X11 forwarding; tcp forwarding can accomplish the same, but then setting up DISPLAY &ct. need to be done manually.
- jakeogh 10y agoAnd it's slow.