Most commands provided to Xgopher via resources are edited in a manner
similar to the C-language printf formats.  Each command may provide
function codes which will be changed into the appropriate value before the
command is executed.  For example, the function code "%f" is replaced
by an internal file name generated by Xgopher.  So, the print command

   lpr %f

will add the file name to the end of the print command.  A command
is edited by examining each character, preserving the original
characters except for sequences of two characters beginning with
a %.

The editing function codes are:

	%h	replaced by the host name from the gopher item
	%p	replaced by the port number from the gopher item
	%P	similar to %p, except when the port is 0 or 23, then %P
		is replaced by a space
	%n	replaced by the name (user string) from the gopher item
	%s	replaced by the selector (path) from the gopher item
	%f	replaced by the name of the temporary file that Xgopher
		is using to process this item.  For convenience, on
		some commands, a %f is implied at the end of the string
		if no editing function codes appeared in the command.
	%%	replaced by a single %.

All function codes are not valid for all commands.  The valid combinations
are shown here:

	print		%h %n %f
			(selector and port are not relevant;
			the file name appended to the end of the command
			automatically if no %'s appear in the command)

	telnet, tn3270	%h %p %n %s %P
			(no file applicable; usually use %P instead of %p)

	image		%h %p %n %s %f %P
			(the file name appended to the end of the command
			automatically if no %'s appear in the command)

	sound		%h %p %n %s %P
			(file name is not applicable)

Suggested values for the resources using these codes effectively are:

	printCommand	(This depends a lot on your local printer environment.)
			I like this one for a PostScript printer with
			Adobe's TranScript software:
				enscript -G -b"%n" -p - %f | lpr -Pgfx

	telnetCommand	xterm -n "telnet" -title "%h" -e telnet %h %P

	tn3270Command	xterm -n "tn3270" -title "%h" -e tn3270 %h %P

	imageCommand	xloadimage -quiet

	soundCommand	(This depends a lot on your local commands to play
			sounds.)  For a Sun, I use:
				cat > /dev/audio
