Tag Info

New answers tagged

1

X programs use DISPLAYs to work out what X11 instance to apply the program to. If you are the sole user of your host then most likely your display will be localhost:0 or often abbreviated to :0. you can find your DISPLAY variable by using: echo ${DISPLAY} To tell xclip to use that display, issue the -display command line option, or set the the DISPLAY ...


1

This should do it: xclip -selection c -o | xclip -selection c


0

I had been wanting to integrate Zsh's cut buffer with the X clipboard. I tried the aforementioned http://stchaz.free.fr/mouse.zsh but I found I disliked having all my Zsh operations populate the clipboard. For instance, sometimes I would copy something in a browser, and then go to a shell and edit the command line and then paste. But often editing the ...


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 ...



Top 50 recent answers are included