Also be aware that appres has one serious
limitation: it cannot distinguish between valid and invalid resource
specifications. It lists all resources that might apply to a client,
regardless of whether the resources are correctly specified.
appres lists the resources that apply to a client
having the class_name and/or
instance_name you specify. Typically, you
would use appres before running a client program
to find out what resources the client program will access.
% appres XTerm
appres lists the resources that any
xterm would load. In the case of
xterm, this is an extensive list, encompassing all
of the system-wide application defaults, as well as any other
defaults you have specified in a resource file.
You can also specify an instance name to list the resources that
applies to a particular instance of the client, as in:
% appres XTerm bigxterm
If you omit the class name, xappres assumes the
class -NoSuchClass-, which has no defaults, and
returns only the resources that would be loaded by the particular
instance of the client.
Note that the instance can simply be the client name, e.g.,
xterm. In that case none of the system-wide
application defaults would be listed, since all begin with the class
name XTerm. For example, the command:
% appres xterm
might return resources settings similar to these:
xterm.vt100.scrollBar: True
xterm*PhonyResource: youbet
xterm*pointerShape: gumby
xterm*iconGeometry: +50+50
*VT100.Translations: #override\
Button1 <Btn3Down>: select-end(CLIPBOARD)\n\
~Ctrl ~Meta <Btn2Up>: insert-selection(primary,CLIPBOARD)