How to save the Xterm configuration I set at runtime

configurationxterm

I configured my xterm using the CTRL-MiddleClick and CTRL-RightClick. Is there a way to export save these settings?

Best Answer

Use editres

You cannot save what you configured through XTerm's own menu. BUT, XTerm is a well behaved X application and as such it supports the editres protocol. So what you should do is:

  1. Launch XTerm
  2. Launch editres
  3. Use the 'Get Tree' command of editres to get the Xt widgets tree of the XTerm (you simply click on the XTerm)
  4. Select the 'vt100' widget and click on 'Show resource box'
  5. Look at the bottom of the resource box, you may have to resize it, and set the 'Save File' filename
  6. Click on the wanted resources and set their values
  7. When done, click the 'Save file' button and quit editres

The save file can now appended to your .Xdefaults.

Example of what I got by this procedure:

.xterm.vt100.utf8: true
.xterm.vt100.utf8Fonts: true
.xterm.vt100.utf8Title: true
.xterm.vt100.vt100Graphics: true
.xterm.vt100.dynamicColors: true
.xterm.vt100.reverseVideo: true
.xterm.vt100.rightScrollBar: true
.xterm.vt100.scrollBar: true
.xterm.vt100.colorRVMode: true

Beware, some options take effects only when some other option changes. For instance: rightScrollBar is looked up by Xterm only when scrollBar changed from false to true.

But all in all you should have the possibility to do the configuration you want.

Links:

Related Question