[comp.windows.x] xmenu and xselection source now on expo.lcs.mit.edu

rlh2@ukc.ac.uk (Richard Hesketh) (11/04/90)

After various requests I have placed copies of the latest versions of
my xmenu and xselection tools that were originally posted to comp.sources.x
on expo.lcs.mit.edu under:

contrib/xmenu.tar.Z			(patchlevel 1)
contrib/xselection.tar.Z		(patchlevel 2)

For those who missed the original postings:

xmenu is a simple tool for presenting popup menus from shell scripts.  It
uses the Athena SimpleMenu Widget and therefore requires X11R4.  E.g.:

	xmenu -heading "A Menu" "Option 1"="opt1" -line "Option 2"="fred"

xselection is another simple tool for getting or setting selection property
(and now CUT_BUFFER property) values from a shell script.  For example to
retrieve some cut text in "vi" without your xterm screaming at you because you
pasted "too much" you can use the following vi macro:

	map X !!xselection PRIMARY^V^M

When "X" is pressed the current line is replaced by the PRIMARY selection,
i.e. the currently selected text.

xselection can also be used in an Xdm session control file to reset the
CUT_BUFFERS between login sessions.