[comp.windows.x] Using and Specifying Resource gateway and location lossage

jim@EXPO.LCS.MIT.EDU (Jim Fulton) (03/23/88)

------- Forwarded Message

Return-Path: jim
Received: by EXPO.LCS.MIT.EDU; Wed, 23 Mar 88 10:06:57 EST
From: jim@expo.lcs.mit.edu (Jim Fulton)
Message-Id: <8803231506.AA22071@EXPO.LCS.MIT.EDU>
To: rusty%velveeta.Berkeley.EDU@berkeley.edu (rusty wright)
Subject: Re: Using and Specifying Resource [gateway lossage] 
Cc: xpert
In-Reply-To: Your message of Tue, 22 Mar 88 19:13:46 PST.
             <8803230313.AA07266@velveeta.Berkeley.EDU> 
Date: Wed, 23 Mar 88 10:06:54 EST


I'm forwarding this to XPERT since it is very useful.

> The documentation also implies/states that you can use the -name flag
> to reduce the number of lines in one's .Xwhatever file that gets loaded
> into the server with xrdb.  

Thanks for pointing this out, I'll add it to the document for the next rev.
What it means is that if you set up your defaults to use the class name for a
program instead of the instance name, you can also list instance resources
under an arbitrary name that you can specify with the -name option. 

For example, if you set up your resources like this:

	XTerm*Font:  6x10
	smallxterm*Font:  3x5
	smallxterm*Geometry:  80x10
	bigxterm*Font: 9x15
	bigxterm*Geometry:  80x55

The following commands can be used to create xterms of different sizes:

	xterm &				creates a normal xterm
	xterm -name smallxterm		creates a small xterm
	green -name bigxterm		creates a big xterm

[Note, that xterm is of class "XTerm" and not "Xterm" has been logged as a bug.]


Jim


------- End of Forwarded Message