Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

SGI graphics Frequently Asked Questions (FAQ)
Section - -25- How can I use resources to run the same program twice with different attributes?

( Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Cities ]


Top Document: SGI graphics Frequently Asked Questions (FAQ)
Previous Document: -24- How can I set resources?
Next Document: -26- Does the GL recognize resources?
See reader questions & answers on this topic! - Help others by sharing your knowledge
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&

User Contributions:

Comment about this article, ask questions, or add new information about this topic:




Top Document: SGI graphics Frequently Asked Questions (FAQ)
Previous Document: -24- How can I set resources?
Next Document: -26- Does the GL recognize resources?

Single Page

[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
sgi-faq@viz.tamu.edu (The SGI FAQ group)





Last Update March 27 2014 @ 02:12 PM