david@lta.COM (David B. Lewis) (02/01/91)
|> >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. The easier thing to do is to get the xselection client by Richard Hesketh; you would do essentially `xselection | lpr`. The old copy I have reads: XSELECTION(l) MISC. REFERENCE MANUAL PAGES XSELECTION(l) NAME xselection - get or set an X selection property value SYNOPSIS xselection [ -display display_name ] PROPERTY_NAME [- | [--] new_value ] DESCRIPTION If the new_value argument is not given xselection retrieves the current value of the named selection property on the given display (defaults to $DISPLAY variable). The value is returned on the standard output as a string. If the new_value argument is given it is used to set the selection property's current value. This value stays until another value is set by another program. If the argument after the property name is a minus sign ('-') the new selection value is taken from the standard input. To set a minus sign as the current selection value you should turn its flag defini- tion off using the '--' argument, e.g. xselection PRIMARY -- - This program can be used from within shell scripts to set and retrieve the contents of the cut buffer. The standard cut buffer selection property is accessed with the property name of "PRIMARY", other selection properties are "SECON- DARY", "PRIMARY_FONT" and "PRIMARY_COLOR". ENVIRONMENT VARIABLES DISPLAY - default X Server to enquire. BUGS As yet unknown. AUTHOR Richard Hesketh, University of Kent at Canterbury, March 1990 rlh2@ukc.ac.uk -- David B. Lewis Lewis, Trachtenberg & Associates (LTA) Note new address!: david@lta.com +1 617 225 0366