editres
More info
- Creator
- Chris D. Peterson
- Released
- Type
- X utility
- License
- MIT
X11R5's tool and protocol for looking inside a running Xt program's widget tree and changing its resources while it runs.
Configuring an X program through Xresources required knowing what the widgets were called, and that information lived only in the source code. Chris D. Peterson at the MIT X Consortium solved it in 1991 with a small protocol: editres sends a ClientMessage to the program's window, the program replies with its widget tree, and the tool draws the tree graphically. Click a node and the matching widget flashes on screen; you can read off its resources, try new values live in the running program and finally save the lines to your .Xresources.
The program has to opt in by registering an event handler from libXmu, which xterm and most Athena programs do and Motif programs sometimes do. The tool is written in Xaw and looks it, but for anyone who needed to know why xterm's scrollbar had the wrong colour there was no better way. GTK and Qt got equivalent inspectors much later; editres did it with a widget set that has not gained a feature since the first Bush administration.