[ Usenet FAQs | Web FAQs | Documents | RFC Index ]
    Search the FAQ Archives

Single Page

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


-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&



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 October 22 2009 @ 05:34 AM

Some parts © 2009 Advameg, Inc.