OS X Leopard was released with an updated Terminal application, which now has tabs, window groups, and many other new features. My excitement to replace the often slowiTerm was quickly extinguished as I realized that the new Terminal.app has some glaring problems:
- The first is the inability to set the title of the tab as you do in iTerm, gnome-terminal, etc. That one I can live with, as there are work-arounds.
- The other major problem is the horrible black themes that come with it (bad and worse). Apple is one of those companies who pay very close attention to visual details such as these, so it’s surprising that they gave us such horrible choices.
So I decided to make a new theme, based on a subset of my popular TextMate themeIR_Black. The problem is the new Terminal app provides no way to set the ANSI colors; even though you can create your own themes (Settings), you can’t change the colors. Ciarán Walsh provides a great solution to this on his blog, which uses the also greatSIMBL.
- For Lion: see this article
- For Leopard: Install SIMBL and TerminalColors following the instructions on Ciarán Walsh’s blog. This is required for the color changes in my theme to work.
- For Snow Leopard: Ciarán Walsh’s TerminalColors doesn’t work on Snow Leopard. Evan Phoenix fixed that in this github repo:http://github.com/evanphx/terminalcolours. Just use this file in place of Ciarán’s:TerminalColours-SL.tar.gz.
- Download the theme file here.
- Double click the IR_Black.terminal file, you downloaded, to install it.
- Set it to be the default (if you want to always use these settings).
The following script will display the 16 colors in the terminal:
echo -e "\033[0mCOLOR_NC (No color)"
echo -e "\033[1;37mCOLOR_WHITE\t\033[0;30mCOLOR_BLACK"
echo -e "\033[0;34mCOLOR_BLUE\t\033[1;34mCOLOR_LIGHT_BLUE"
echo -e "\033[0;32mCOLOR_GREEN\t\033[1;32mCOLOR_LIGHT_GREEN"
echo -e "\033[0;36mCOLOR_CYAN\t\033[1;36mCOLOR_LIGHT_CYAN"
echo -e "\033[0;31mCOLOR_RED\t\033[1;31mCOLOR_LIGHT_RED"
echo -e "\033[0;35mCOLOR_PURPLE\t\033[1;35mCOLOR_LIGHT_PURPLE"
echo -e "\033[0;33mCOLOR_YELLOW\t\033[1;33mCOLOR_LIGHT_YELLOW"
echo -e "\033[1;30mCOLOR_GRAY\t\033[0;37mCOLOR_LIGHT_GRAY"
To install script:
- Copy the script to your workstation, name it colors
- Make it executable: chmod +x colors
- Run it: ./colors
If there is an easier way to change the ANSI colors in Terminal, please let me know. Although I have had no problems with SIMBL, it’s always better, if possible, not to use hacks.
Note: the color scheme I use for Vim in the screenshot above can be found here.
Comments are closed for this article.
Feel free to contact me on twitter if you have any questions or comments: @twerth.