ianr@syma.sussex.ac.uk (Ian Rogers) writes:
> A.Sloman@uk.ac.bham.cs ("A.Sloman") writes:
> > I wonder if anyone can see anything wrong with this. Here's the
> > code for a procedure xsetresource, with a help section giving
> > examples of its use. Suggestions for improvement welcome.
>
> I don't know if the following is better, but it's an alternative. In
> particular there's not really enough checking of arguments, but it does
> avoid the fork in -sysobey-.
Another bonus is that it only updates the "application resources"
ie. the resource database of the current Poplog. The
sysobey('xrdb -merge...')
method effects the display database, and thus will effect *any*
subsequently run Poplog (or other) process.
Ian.
|