I'm looking for a way to automatically list all X resources that are used in an application. To give you an example, for xterm I'd expect a list similar to the following but with all the resources that are used by
xterm.
background
foreground
cursorColor
vt100.geometry
scrollBar
scrollTtyOutput
...
The method can work on the source code of the application but if it is possible to do it with only the application binary that would also be interesting.