News for hackers. Stuff that matters.
Re:Yank: Yank Terminal Output to Clipboard by euske on Sunday March 28, 2021 @04:17AM (#26608786)
You can do this with tmux too.

    ~/.tmux.conf:

    # export to clipboard.
    bind-key > run-shell -b 'tmux save-buffer - | xclip'
    # paste from clipboard.
    bind-key < run-shell -b '( xclip -o | tmux load-buffer - ) && tmux paste-buffer'
(edit: my actual setup is slightly different. It interacts with a Windows clipboard via ssh where the terminal is running. cf. https://github.com/euske/pyrexecd/blob/master/tools/tmux.con... )
Re:Yank: Yank Terminal Output to Clipboard by kilnr on Sunday March 28, 2021 @06:29AM (#26609231)
You could also use `xclip -selection clipboard` if you wanted it to end up in your clipboard (so you can use ctrl-v to paste) instead of in your primary selection (the one where highlighting text copies and middle click pastes).
Re:Yank: Yank Terminal Output to Clipboard by hippira on Sunday March 28, 2021 @10:46PM (#26617192)
I use xsel : ./command | xsel -ib