Is there a way to print from the cliboard?

Is there a way to print from the cliboard?

Gilad Ben-Yossef gilad at codefidence.com
Tue Mar 17 09:41:29 IST 2009


Michael Shiloh wrote:

> I'm editing a file, or viewing a web page, or whatever.
>
> I'm interested in printing only a small portion of it.
>
> I'd like to be able to essentially "print selection".
>
> Of course this would require that each program (gvim, firefox, 
> thunderbird, terminal, whatever) provide such an option.
>
> Alternately, I can copy to my clipboard, and then through some clever 
> utility (I assume there are clipboard utilities?) print from 
> clipboard. This would work with any source, regardless of whether the 
> program supports printing selection or not.
>
> But when I searched I could not find the answer.
>
> Anyone know? Does such a think exist?

$ xclip -o | lpr

but it works only with text... :-)

Gilad



-- 
Gilad Ben-Yossef 
Chief Coffee Drinker

Codefidence Ltd.
The code is free, your time isn't.(TM)

Web:    http://codefidence.com
Email:  gilad at codefidence.com
Office: +972-8-9316883 ext. 201
Fax:    +972-8-9316885
Mobile: +972-52-8260388

	The Doctor: Don't worry, Reinette, just a nightmare. 
	Everyone has nightmares. Even monsters from under the 
	bed have nightmares, don't you, monster?
	Reinette: What do monsters have nightmares about?
	The Doctor: Me! 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20090317/b8951605/attachment.html>


More information about the Linux-il mailing list