Redirecting Output Into The Copy Buffer

Dan Nelson dnelson at allantgroup.com
Mon Jul 12 15:40:51 PDT 2004


In the last episode (Jul 12), Jason Dusek said:
> Most of the time, when I click the third mouse button something gets
> pasted wherever my cursor is. Presumably it gets pasted from some
> buffer somewhere, let's call it the X buffer or buffer X. Is there
> some way to redirect the output of a terminal command into the X
> buffer? Then I can run something like this:
> 
>   5 # dmesg > [wherever the X buffer is]

Take a look at the x11/xclip port; I think it does what you want.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list