[comp.windows.x] titles in twm's IconManager

gwp@hss.caltech.edu (G. W. Pigman III) (01/06/90)

Is there a way to force the IconManager to use the title (as specified
by -title) instead of the name of the program?  I have xterms
running on different machines, and when they are iconified, I forget
which one is which.
--
-Mac Pigman
gwp@hss.caltech.edu	(internet)
pigman@caltech.bitnet	(bitnet)

bruce@hpihoah.HP.COM (Bruce LaVigne) (01/09/90)

> / gwp@hss.caltech.edu (G. W. Pigman III) /  7:36 pm  Jan  5, 1990 /
> Is there a way to force the IconManager to use the title (as specified
> by -title) instead of the name of the program?  I have xterms
> running on different machines, and when they are iconified, I forget
> which one is which.
> --
> -Mac Pigman
> gwp@hss.caltech.edu	(internet)
> pigman@caltech.bitnet	(bitnet)
> ----------

I use the -n option, which specifies icon name for twm to use.  Almost always,
my -title and my -n string are the same, but it's nice to set them separately.

-bruce

kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) (01/10/90)

> I use the -n option, which specifies icon name for twm to use.

This option also changes the resource names so that the command:

xterm -name xclock

would match the following resources:

xclock*Background:		Blue
xclock*Foreground:		Red

instead of these:

xterm*Background:		Blue
xterm*Foreground:		Red

> Almost always, my -title and my -n string are the same, but it's nice to set
> them separately.

This is why ``title'' and ``name'' are seperate options, they really do
different things.


						Chris D. Peterson     
						MIT X Consortium 

Net:	 kit@expo.lcs.mit.edu
Phone:   (617) 253 - 9608	
Address: MIT - Room NE43-213

swick@ATHENA.MIT.EDU (Ralph R. Swick) (01/10/90)

>>[Bruce]
>> I use the -n option, which specifies icon name for twm to use.
>[Chris]
>This option also changes the resource names so that the command:

No, actually it doesn't in the case of xterm.  For historical
reasons (which are probably now very inappropriate), '-n' in xterm
is *not* an abbreviation for '-name' but rather is short-hand
for '-xrm *iconName:', exactly as Bruce suggests.  I would
urge everyone to try to get out of the habit of using xterm's -n
just because it is the only client that has it, to avoid the
confusion.