Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use emacs/org-mode which uses color for hiding some of the headlines as is shown here. emacs screenshot in Terminal

This works well with Aquamcas, but when I run emacs in text mode, I still see the stars in the headline as I didn't make the background color exactly the same as the color of the font.

How can I match the text color and background color in Terminal?

share|improve this question
up vote 2 down vote accepted

Open a terminal window and type some of the text whose color you want to set the background the same as. Then open Terminal preferences.

Click the Window tab and then the Background Color. This brings up a color picker window. Click the magnifying glass in the upper left and move it over the text you want to match the color with. When you click on the text this will set the color you want. You could also set it directly in the RGB slider panel shown in the 2nd image which matches the text color from your image in the question.

Magnifying glass pickerRGB sliders

share|improve this answer
Thanks for the answer, I just want to know the color of the * as is shown in the screen to set the background of the color to the same one to hide the * characters. – prosseek Feb 2 '11 at 16:50
Ah I see, answer updated – conorgriffin Feb 2 '11 at 17:08

You might have not enough colors in the terminal. Try

export TERM=xterm-256color

in your ~/.bashrc

Also, are you running



/Applications/ -nw 

The two behave differently (in /usr/bin/emacs you may have Emacs 22)

share|improve this answer

Your Answer


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.