Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!think.com!snorkelwacker.mit.edu!bloom-beacon!deccrl!news.crl.dec.com!decvax.DEC.COM!evans From: evans@decvax.DEC.COM (Marc Evans) Newsgroups: comp.windows.x Subject: Re: xterm/dxterm selection into pipe? Message-ID: <532@decvax.decvax.dec.com.UUCP> Date: 4 Feb 91 12:45:52 GMT References: <1991Jan29.162418@amdew.llnl.gov> Sender: news@decvax.dec.com.UUCP Reply-To: evans@decvax.DEC.COM Organization: Synergytics Lines: 25 In article <1991Jan29.162418@amdew.llnl.gov>, sowa@amdew.llnl.gov (Erik C. Sowa) writes: |> I would like to be able to pipe the contents of the highlighted |> selection in a terminal window (xterm or dxterm) into various commands, |> principally lpr. This would give me a "print selection" capability. Any |> solutions out there? BTW, I am running ultrix 4.0 / DECwindows, but I |> have the R4 clients. How about running another xterm/dxterm in which you execute something like $ cat - | {desired_command} And then just paste the region into this window, followed by a ^D (Control-D or EOF)? In the case of the lpr command you should be able to just say $ lpr and then paste the information and send an EOF. - Marc -- =========================================================================== Marc Evans - WB1GRH - evans@decvax.DEC.COM | Synergytics (603)635-8876 Unix and X Software Contractor | 21 Hinds Ln, Pelham, NH 03076 ===========================================================================