'emacs: limit number of colors used by font-lock

I have my terminal configured to use the solarized color palette. I would like to simply limit emacs to 8 colors so that font-lock uses the same colors as my terminal. I can accomplish this by running emacs with TERM=xterm-color but this is causing some other terminal issues.

Is there another way to limit the number of colors available? As far as I can tell emacs configures this directly from the terminal parameters.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source