Up: SGI graphics Frequently Asked Questions (FAQ)
Next: -26- Does the GL recognize resources?
Previous: -24- How can I set resources?
Subject: -25- How can I use resources to run the same program twice
with different attributes?
Date: 07 May 1993 00:00:01 EST
To accomplish this task, you need to take advantage of the "instance
vs class" concept. This concept is explained further in most books on
Xt.
Many applications have a resource that lets you to give it a unique
name. For example, from the xwsh man page :
-name instance-name
Provide a unique name for an xwsh window. This name becomes
the instance name of the specific xwsh, with the class name
always being "XWsh".
Using the -name option allows you to give "names" to different
instances of xwsh and assign different resources to each one. So if
you want two different xwsh's with different resource sets, give them
two different names, say howdymom and howdydoody, for example. Add
the following to your ~/.Xdefaults file (if you use .Xdefaults) :
howdymom*foreground: SeaGreen
howdydoody*foreground: SGIBeet
Now all you have to do is start them up :
xwsh -name howdymom&
xwsh -name howdydoody&
Up: SGI graphics Frequently Asked Questions (FAQ)
Next: -26- Does the GL recognize resources?
Previous: -24- How can I set resources?