Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

My question is about xterm menu colors, but perhaps I'm doing something else wrong so I'm going to include the background steps that got me to this question.

I'm trying to get XTerm to send escape by default when I hit the meta key. I can get this to work by adding a .Xresources file:

XTerm*metaSendsEscape: true

That works great, but by loading the .Xresources file it changes my new xterm color schemes to black on white; I want white on black.

Ok, I can fix this. I'll just add some more config to my .Xresources:

XTerm*Background: Black
XTerm*Foreground: White
XTerm*metaSendsEscape: true

This does set my xterm back to the color scheme I want. Almost. The background and foreground are both black, but now the menus (ctrl+left click) have the same color scheme which makes it hard to see them.

So I now want to change the menu colors independently of the normal background and foreground, but I can't figure out how to do that. I assume it is possible because if I remove the .Xresources file that is default that I get.

This is what my xterm looks like without a .Xresources file (this is what I'm trying to replicate using .Xresouces): xterm with correct colors

This is what my xterm currently looks like with the above .Xresources: xterm with black on black menus

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You can try to add the "AntiqueWhite" color for the 3 menus (Main,VT Options & VT fonts).

1) Edit your .Xresources file with your favorite editor:

  • gedit ~/.Xresources

2) Add the following lines:

XTerm*mainMenu*Background: AntiqueWhite
XTerm*vtMenu*Background: AntiqueWhite
XTerm*fontMenu*Background: AntiqueWhite

3) Load the changes with the following command:

  • xrdb -merge ~/.Xresources

enter image description here

Hope it helps.

share|improve this answer
    
Thanks. That's exactly what I needed! –  psanford Sep 28 '13 at 0:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.