Tag Info

New answers tagged

0

Assuming you use gnome-terminal and less as a pager for man you can: Run less for man with -X key to disable alternate screen, for example: LESS=-X man less This will allow to append output of man to terminal emulator history buffer. See this answer for more details http://unix.stackexchange.com/a/38638/87918. Scroll to the last page of text you want ...


1

You'll have spaces at the end of the line when selecting and copying from the terminal if the application displayed spaces at that spot. Applications may display spaces in order to erase what was there before. Terminals have commands to delete a whole line or delete characters to the right of the cursor; applications choose between that and displaying spaces ...


1

Copy & pasting from a terminal screen is never going to be fully reliable because it's dealing with screen output instead of original source material. If some applications echo text to the terminal in an unusual fashion and it results in the terminal not being able to guess what the original text was, there's probably not much you or the terminal can do ...


1

Edward's answer, and google, solved this for me. Gertvdijk had also mentioned it. Installing the Spice Windows Guest Tools on my windows guest allowed clipboard sharing without even having to restart the guest. In a shameless attempt to get enough reputation to vote up, I'll fill in the gaps that slm suggested, and seeing it was high in the list in my ...


1

If your Vim is compiled with the +clipboard feature (check if +clipboard appears in :version or in vim --version), then there are two special registers that designate the system clipboard. The register "+ designates the clipboard, which is used by Ctrl+C/Ctrl+V. The register "* designates the primary selection, which is used by mouse selection and ...


0

And improved version of @Leif answer could be: tmux bind-key '[' run "tmux copy-mode; tmux bind-key -n ']' run \"tmux send-keys Enter; tmux save-buffer - | xclip -i -selection clipboard; tmux unbind-key -n ']'\"; tmux bind-key -n q run \"tmux unbind -n ']'; tmux send-keys q\"; tmux bind-key -n C-c run \"tmux unbind -n ']'; tmux send-keys C-c\"" This way ...


2

First a misconception: any selected text is immediately sent to the clipboard Actually text is never "sent" anywhere until it is requested by a receiving application. When you select text, the application only claims the selection, which means basically that it raises a flag to say that from now on it owns it. Now on to your question: In X11 there ...



Top 50 recent answers are included