Myreader.co.uk  
uk news, chat and community
   home   |   control panel login   |   archive   |  
 
comp
graphics.flash
homebuilt
home-networking
misc
os.linux
peripherals.misc
sys.laptops
sys.mac
sys.palmtops
sys.sun
training
vendors
  
 
date: Fri, 30 Oct 2009 09:00:37 -0700 (PDT),    group: uk.comp.os.linux        back       
how to send contents of copy-buffer to enscript directly   
I often perform the following sequence of steps: 1.use the left-mouse
to copy a text fragment, 2. then I open an editor and 3. paste the
text in (with mid mouse key) ,4.  then I save the contents of the
editor as a file, 5. then I use enscript to print the file.
I guess however it should  be possible to minimize all these steps
i.e. how can I send the contents I copied with the left mouse key
directly to enscript?

regards,
Hugo
date: Fri, 30 Oct 2009 09:00:37 -0700 (PDT)   author:   unknown

Re: how to send contents of copy-buffer to enscript directly   
On Fri, 30 Oct 2009 09:00:37 -0700, hugocoolens@gmail.com wrote:

> I often perform the following sequence of steps: 1.use the left-mouse to
> copy a text fragment, 2. then I open an editor and 3. paste the text in
> (with mid mouse key) ,4.  then I save the contents of the editor as a
> file, 5. then I use enscript to print the file. I guess however it should 
> be possible to minimize all these steps i.e. how can I send the contents I
> copied with the left mouse key directly to enscript?

If no input files are specified enscript reads from stdin. So in a
terminal window enter "enscript <options> <CR>", then paste in the text
followed by ctrl-D (EOF).

Regards, Ian
date: Fri, 30 Oct 2009 16:17:45 +0000   author:   Ian Northeast

Re: how to send contents of copy-buffer to enscript directly   
I demand that hugocoolens@gmail.com may or may not have written...

> I often perform the following sequence of steps: 1.use the left-mouse
> to copy a text fragment, 2. then I open an editor and 3. paste the
> text in (with mid mouse key) ,4.  then I save the contents of the
> editor as a file, 5. then I use enscript to print the file.
> I guess however it should  be possible to minimize all these steps
> i.e. how can I send the contents I copied with the left mouse key
> directly to enscript?

Something like this:
  $ xclip -o | enscript

If you need to pass a filename to enscript (looking at its man page,
"--page-label-format=long" would be a good reason):
  $ xclip -o >foo.txt
  $ enscript foo.txt

-- 
| Darren Salt            | linux at youmustbejoking | nr. Ashington, | Doon
| using Debian GNU/Linux | or ds    ,demon,co,uk    | Northumberland | Army
| + At least 4000 million too many people. POPULATION LEVEL IS UNSUSTAINABLE.

The queue you've just left speeds up.
date: Fri, 30 Oct 2009 16:54:22 +0000   author:   Darren Salt lid

Re: how to send contents of copy-buffer to enscript directly   
On Oct 30, 5:17 pm, Ian Northeast 
wrote:
> On Fri, 30 Oct 2009 09:00:37 -0700, hugocool...@gmail.com wrote:
> > I often perform the following sequence of steps: 1.use the left-mouse to
> > copy a text fragment, 2. then I open an editor and 3. paste the text in
> > (with mid mouse key) ,4.  then I save the contents of the editor as a
> > file, 5. then I use enscript to print the file. I guess however it should
> > be possible to minimize all these steps i.e. how can I send the contents I
> > copied with the left mouse key directly to enscript?
>
> If no input files are specified enscript reads from stdin. So in a
> terminal window enter "enscript <options> <CR>", then paste in the text
> followed by ctrl-D (EOF).
>
> Regards, Ian

great! this works like a charm, the other solution posted by Darren
also works

best regards,
hugo
date: Fri, 30 Oct 2009 10:13:14 -0700 (PDT)   author:   unknown

Re: how to send contents of copy-buffer to enscript directly   
On Oct 30, 5:17 pm, Ian Northeast 
wrote:
> On Fri, 30 Oct 2009 09:00:37 -0700, hugocool...@gmail.com wrote:
> > I often perform the following sequence of steps: 1.use the left-mouse to
> > copy a text fragment, 2. then I open an editor and 3. paste the text in
> > (with mid mouse key) ,4.  then I save the contents of the editor as a
> > file, 5. then I use enscript to print the file. I guess however it should
> > be possible to minimize all these steps i.e. how can I send the contents I
> > copied with the left mouse key directly to enscript?
>
> If no input files are specified enscript reads from stdin. So in a
> terminal window enter "enscript <options> <CR>", then paste in the text
> followed by ctrl-D (EOF).
>
> Regards, Ian

great! this works like a charm, the other solution posted by Darren
also works

best regards,
hugo
date: Fri, 30 Oct 2009 10:17:34 -0700 (PDT)   author:   unknown

Google
 
Web myreader.co.uk


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us