Derek Gourlay's Website

OS X Lion - Terminal Colours

Having recently I upgraded my Mac to OS X Lion the first thing I noticed was my terminal's color theme was no longer working properly!  Prior to upgrading I was using a combination of  Visor (now replaced by TotalTerminal), SIMBL, and TerminalColors along with the IR_Black theme posted by Todd Werth as detailed in his blog entry A black OS X Leopard Terminal theme that is actually readable.  As the method to solve my problem took a bit of searching and trial and error I am posting the process I went through in hopes of helping others whom may stumble upon this post.   

 

Steps taken:

1)  Since I previously had Visor installed, I made the switch to TotalTerminal by uninstalling SIMBL (this also removes any plugins such as TerminalColors).  Easiest way to accomplish this is to head over to the SIMBL site, download the lastest release, and run the uninstaller it comes with.

2)  Install TotalTerminal.

3) A modified version of the IR_Black.terminal theme file has been provided below.  I have also posted a copy to Gist on Github here. Create a new file ending with the.terminal extension containing the modified code.

4)  Open your terminal and head over to Terminal -> Preferences -> Text tab.  TotalTerminal uses the Visor theme when it loads up. Remove the existing Visor theme, import the newly created file from step 3, and rename it to Visor.

Terminal Preferences Pane

 5) Quit and restart TotalTerminal and your new color theme should load. 

TotalTerminal Screenshot

Modified IR_Black.terminal theme file: 

 XML |  copy code |? 
001
002
<?xml version="1.0" encoding="UTF-8"?>
003
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
004
<plist version="1.0">
005
<dict>
006
	<key>ANSIBlueColor</key>
007
	<data>
008
	YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
009
	AAGGoKMHCA9VJG51bGzTCQoLDA0OViRjbGFzc1xOU0NvbG9yU3BhY2VVTlNSR0KAAhAC
010
	TxAnMC41ODgyMzUyOTQxIDAuNzk2MDc4NDMxNCAwLjk5NjA3ODQzMTQA0hAREhNaJGNs
011
	YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp
012
	dmVy0RcYVHJvb3SAAQgRGiMtMjc7QUhPXGJkZpCVoKmxtL3P0tcAAAAAAAABAQAAAAAA
013
	AAAZAAAAAAAAAAAAAAAAAAAA2Q==
014
	</data>
015
	<key>ANSIBrightBlackColor</key>
016
	<data>
017
	YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
018
	AAGGoKMHCA9VJG51bGzTCQoLDA0OViRjbGFzc1xOU0NvbG9yU3BhY2VVTlNSR0KAAhAC
019
	TxAnMC40ODYyNzQ1MDk4IDAuNDg2Mjc0NTA5OCAwLjQ4NjI3NDUwOTgA0hAREhNaJGNs
020
	YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp
021
	dmVy0RcYVHJvb3SAAQgRGiMtMjc7QUhPXGJkZpCVoKmxtL3P0tcAAAAAAAABAQAAAAAA
022
	AAAZAAAAAAAAAAAAAAAAAAAA2Q==
023
	</data>
024
	<key>ANSIBrightBlueColor</key>
025
	<data>
026
	YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
027
	AAGGoKMHCA9VJG51bGzTCQoLDA0OViRjbGFzc1xOU0NvbG9yU3BhY2VVTlNSR0KAAhAC
028
	TxAbMC43MTM3MjU0OTAyIDAuODYyNzQ1MDk4IDEA0hAREhNaJGNsYXNzbmFtZVgkY2xh
029
	c3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hpdmVy0RcYVHJvb3SA
030
	AQgRGiMtMjc7QUhPXGJkZoSJlJ2lqLHDxssAAAAAAAABAQAAAAAAAAAZAAAAAAAAAAAA
031
	AAAAAAAAzQ==
032
	</data>
033
	<key>ANSIBrightCyanColor</key>
034
	<data>
035
	YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
036
	AAGGoKMHCA9VJG51bGzTCQoLDA0OViRjbGFzc1xOU0NvbG9yU3BhY2VVTlNSR0KAAhAC
037
	TxAnMC44NzQ1MDk4MDM5IDAuODc0NTA5ODAzOSAwLjk5NjA3ODQzMTQA0hAREhNaJGNs
038
	YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp
039
	dmVy0RcYVHJvb3SAAQgRGiMtMjc7QUhPXGJkZpCVoKmxtL3P0tcAAAAAAAABAQAAAAAA
040
	AAAZAAAAAAAAAAAAAAAAAAAA2Q==
041
	</data>
042
	<key>ANSIBrightGreenColor</key>
043
	<data>
044
	YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
045
	AAGGoKMHCA9VJG51bGzTCQoLDA0OViRjbGFzc1xOU0NvbG9yU3BhY2VVTlNSR0KAAhAC
046
	TxAcMC44MDc4NDMxMzczIDEgMC42NzQ1MDk4MDM5ANIQERITWiRjbGFzc25hbWVYJGNs
047
	YXNzZXNXTlNDb2xvcqISFFhOU09iamVjdF8QD05TS2V5ZWRBcmNoaXZlctEXGFRyb290
048
	gAEIERojLTI3O0FIT1xiZGaFipWepqmyxMfMAAAAAAAAAQEAAAAAAAAAGQAAAAAAAAAA
049
	AAAAAAAAAM4=
050
	</data>
051
	<key>ANSIBrightMagentaColor</key>
052
	<data>
053
	YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
054
	AAGGoKMHCA9VJG51bGzTCQoLDA0OViRjbGFzc1xOU0NvbG9yU3BhY2VVTlNSR0KAAhAC
055
	TxAcMSAwLjYxMTc2NDcwNTkgMC45OTYwNzg0MzE0ANIQERITWiRjbGFzc25hbWVYJGNs
056
	YXNzZXNXTlNDb2xvcqISFFhOU09iamVjdF8QD05TS2V5ZWRBcmNoaXZlctEXGFRyb290
057
	gAEIERojLTI3O0FIT1xiZGaFipWepqmyxMfMAAAAAAAAAQEAAAAAAAAAGQAAAAAAAAAA
058
	AAAAAAAAAM4=
059
	</data>
060
	<key>ANSIBrightRedColor</key>
061
	<data>
062
	YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
063
	AAGGoKMHCA9VJG51bGzTCQoLDA0OViRjbGFzc1xOU0NvbG9yU3BhY2VVTlNSR0KAAhAC
064
	TxAcMSAwLjcxMzcyNTQ5MDIgMC42OTAxOTYwNzg0ANIQERITWiRjbGFzc25hbWVYJGNs
065
	YXNzZXNXTlNDb2xvcqISFFhOU09iamVjdF8QD05TS2V5ZWRBcmNoaXZlctEXGFRyb290
066
	gAEIERojLTI3O0FIT1xiZGaFipWepqmyxMfMAAAAAAAAAQEAAAAAAAAAGQAAAAAAAAAA
067
	AAAAAAAAAM4=
068
	</data>
069
	<key>ANSIBrightWhiteColor</key>
070
	<data>
071
	YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
072
	AAGGoKMHCA9VJG51bGzTCQoLDA0OViRjbGFzc1xOU0NvbG9yU3BhY2VVTlNSR0KAAhAC
073
	RjEgMSAxANIQERITWiRjbGFzc25hbWVYJGNsYXNzZXNXTlNDb2xvcqISFFhOU09iamVj
074
	dF8QD05TS2V5ZWRBcmNoaXZlctEXGFRyb290gAEIERojLTI3O0FIT1xiZGZtcn2GjpGa
075
	rK+0AAAAAAAAAQEAAAAAAAAAGQAAAAAAAAAAAAAAAAAAALY=
076
	</data>
077
	<key>ANSIBrightYellowColor</key>
078
	<data>
079
	YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
080
	AAGGoKMHCA9VJG51bGzTCQoLDA0OViRjbGFzc1xOU0NvbG9yU3BhY2VVTlNSR0KAAhAC
081
	SDEgMSAwLjgA0hAREhNaJGNsYXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2Jq
082
	ZWN0XxAPTlNLZXllZEFyY2hpdmVy0RcYVHJvb3SAAQgRGiMtMjc7QUhPXGJkZm90f4iQ
083
	k5yusbYAAAAAAAABAQAAAAAAAAAZAAAAAAAAAAAAAAAAAAAAuA==
084
	</data>
085
	<key>ANSICyanColor</key>
086
	<data>
087
	YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
088
	AAGGoKMHCA9VJG51bGzTCQoLDA0OViRjbGFzc1xOU0NvbG9yU3BhY2VVTlNSR0KAAhAC
089
	TxAnMC43NzY0NzA1ODgyIDAuNzcyNTQ5MDE5NiAwLjk5NjA3ODQzMTQA0hAREhNaJGNs
090
	YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp
091
	dmVy0RcYVHJvb3SAAQgRGiMtMjc7QUhPXGJkZpCVoKmxtL3P0tcAAAAAAAABAQAAAAAA
092
	AAAZAAAAAAAAAAAAAAAAAAAA2Q==
093
	</data>
094
	<key>ANSIGreenColor</key>
095
	<data>
096
	YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
097
	AAGGoKMHCA9VJG51bGzTCQoLDA0OViRjbGFzc1xOU0NvbG9yU3BhY2VVTlNSR0KAAhAC
098
	TxAcMC42NTg4MjM1Mjk0IDEgMC4zNzY0NzA1ODgyANIQERITWiRjbGFzc25hbWVYJGNs
099
	YXNzZXNXTlNDb2xvcqISFFhOU09iamVjdF8QD05TS2V5ZWRBcmNoaXZlctEXGFRyb290
100
	gAEIERojLTI3O0FIT1xiZGaFipWepqmyxMfMAAAAAAAAAQEAAAAAAAAAGQAAAAAAAAAA
101
	AAAAAAAAAM4=
102
	</data>
103
	<key>ANSIMagentaColor</key>
104
	<data>
105
	YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
106
	AAGGoKMHCA9VJG51bGzTCQoLDA0OViRjbGFzc1xOU0NvbG9yU3BhY2VVTlNSR0KAAhAC
107
	TxAcMSAwLjQ1MDk4MDM5MjIgMC45OTIxNTY4NjI3ANIQERITWiRjbGFzc25hbWVYJGNs
108
	YXNzZXNXTlNDb2xvcqISFFhOU09iamVjdF8QD05TS2V5ZWRBcmNoaXZlctEXGFRyb290
109
	gAEIERojLTI3O0FIT1xiZGaFipWepqmyxMfMAAAAAAAAAQEAAAAAAAAAGQAAAAAAAAAA
110
	AAAAAAAAAM4=
111
	</data>
112
	<key>ANSIRedColor</key>
113
	<data>
114
	YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
115
	AAGGoKMHCA9VJG51bGzTCQoLDA0OViRjbGFzc1xOU0NvbG9yU3BhY2VVTlNSR0KAAhAC
116
	TxAcMSAwLjQyMzUyOTQxMTggMC4zNzY0NzA1ODgyANIQERITWiRjbGFzc25hbWVYJGNs
117
	YXNzZXNXTlNDb2xvcqISFFhOU09iamVjdF8QD05TS2V5ZWRBcmNoaXZlctEXGFRyb290
118
	gAEIERojLTI3O0FIT1xiZGaFipWepqmyxMfMAAAAAAAAAQEAAAAAAAAAGQAAAAAAAAAA
119
	AAAAAAAAAM4=
120
	</data>
121
	<key>ANSIWhiteColor</key>
122
	<data>
123
	YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
124
	AAGGoKMHCA9VJG51bGzTCQoLDA0OViRjbGFzc1xOU0NvbG9yU3BhY2VVTlNSR0KAAhAC
125
	TxAnMC45MzMzMzMzMzMzIDAuOTMzMzMzMzMzMyAwLjkzMzMzMzMzMzMA0hAREhNaJGNs
126
	YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp
127
	dmVy0RcYVHJvb3SAAQgRGiMtMjc7QUhPXGJkZpCVoKmxtL3P0tcAAAAAAAABAQAAAAAA
128
	AAAZAAAAAAAAAAAAAAAAAAAA2Q==
129
	</data>
130
	<key>ANSIYellowColor</key>
131
	<data>
132
	YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
133
	AAGGoKMHCA9VJG51bGzTCQoLDA0OViRjbGFzc1xOU0NvbG9yU3BhY2VVTlNSR0KAAhAC
134
	TxARMSAxIDAuNzEzNzI1NDkwMgDSEBESE1okY2xhc3NuYW1lWCRjbGFzc2VzV05TQ29s
135
	b3KiEhRYTlNPYmplY3RfEA9OU0tleWVkQXJjaGl2ZXLRFxhUcm9vdIABCBEaIy0yNztB
136
	SE9cYmRmen+Kk5uep7m8wQAAAAAAAAEBAAAAAAAAABkAAAAAAAAAAAAAAAAAAADD
137
	</data>
138
	<key>BackgroundBlur</key>
139
	<real>0.0</real>
140
	<key>BackgroundColor</key>
141
	<data>
142
	YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
143
	AAGGoKMHCA9VJG51bGzTCQoLDA0OViRjbGFzc1xOU0NvbG9yU3BhY2VXTlNXaGl0ZYAC
144
	EANHMCAwLjg1ANIQERITWiRjbGFzc25hbWVYJGNsYXNzZXNXTlNDb2xvcqISFFhOU09i
145
	amVjdF8QD05TS2V5ZWRBcmNoaXZlctEXGFRyb290gAEIERojLTI3O0FIT1xkZmhwdYCJ
146
	kZSdr7K3AAAAAAAAAQEAAAAAAAAAGQAAAAAAAAAAAAAAAAAAALk=
147
	</data>
148
	<key>CursorColor</key>
149
	<data>
150
	YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
151
	AAGGoKMHCA9VJG51bGzTCQoLDA0OViRjbGFzc1xOU0NvbG9yU3BhY2VXTlNXaGl0ZYAC
152
	EANLMC4zMDI0MTkzNgDSEBESE1okY2xhc3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiEhRY
153
	TlNPYmplY3RfEA9OU0tleWVkQXJjaGl2ZXLRFxhUcm9vdIABCBEaIy0yNztBSE9cZGZo
154
	dHmEjZWYobO2uwAAAAAAAAEBAAAAAAAAABkAAAAAAAAAAAAAAAAAAAC9
155
	</data>
156
	<key>Font</key>
157
	<data>
158
	YnBsaXN0MDDUAQIDBAUGGBlYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
159
	AAGGoKQHCBESVSRudWxs1AkKCwwNDg8QViRjbGFzc1ZOU05hbWVWTlNTaXplWE5TZkZs
160
	YWdzgAOAAiNAJAAAAAAAABAQVk1vbmFjb9ITFBUWWiRjbGFzc25hbWVYJGNsYXNzZXNW
161
	TlNGb250ohUXWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hpdmVy0RobVHJvb3SAAQgRGiMt
162
	Mjc8QktSWWBpa212eH+Ej5ifoqu9wMUAAAAAAAABAQAAAAAAAAAcAAAAAAAAAAAAAAAA
163
	AAAAxw==
164
	</data>
165
	<key>FontAntialias</key>
166
	<true/>
167
	<key>FontWidthSpacing</key>
168
	<real>0.99596774193548387</real>
169
	<key>ProfileCurrentVersion</key>
170
	<real>2.02</real>
171
	<key>SelectionColor</key>
172
	<data>
173
	YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
174
	AAGGoKMHCA9VJG51bGzTCQoLDA0OViRjbGFzc1xOU0NvbG9yU3BhY2VVTlNSR0KAAhAC
175
	TxAoMC4wNzA1ODgyMzUyOSAwLjA3NDUwOTgwMzkyIDAuMTY4NjI3NDUxANIQERITWiRj
176
	bGFzc25hbWVYJGNsYXNzZXNXTlNDb2xvcqISFFhOU09iamVjdF8QD05TS2V5ZWRBcmNo
177
	aXZlctEXGFRyb290gAEIERojLTI3O0FIT1xiZGaRlqGqsrW+0NPYAAAAAAAAAQEAAAAA
178
	AAAAGQAAAAAAAAAAAAAAAAAAANo=
179
	</data>
180
	<key>ShowWindowSettingsNameInTitle</key>
181
	<false/>
182
	<key>TextBoldColor</key>
183
	<data>
184
	YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
185
	AAGGoKMHCA9VJG51bGzTCQoLDA0OViRjbGFzc1xOU0NvbG9yU3BhY2VXTlNXaGl0ZYAC
186
	EANCMQDSEBESE1okY2xhc3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiEhRYTlNPYmplY3Rf
187
	EA9OU0tleWVkQXJjaGl2ZXLRFxhUcm9vdIABCBEaIy0yNztBSE9cZGZoa3B7hIyPmKqt
188
	sgAAAAAAAAEBAAAAAAAAABkAAAAAAAAAAAAAAAAAAAC0
189
	</data>
190
	<key>TextColor</key>
191
	<data>
192
	YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
193
	AAGGoKMHCA9VJG51bGzTCQoLDA0OViRjbGFzc1xOU0NvbG9yU3BhY2VVTlNSR0KAAhAC
194
	TxAnMC45NDkwMTk2MDc4IDAuOTQ5MDE5NjA3OCAwLjk0OTAxOTYwNzgA0hAREhNaJGNs
195
	YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp
196
	dmVy0RcYVHJvb3SAAQgRGiMtMjc7QUhPXGJkZpCVoKmxtL3P0tcAAAAAAAABAQAAAAAA
197
	AAAZAAAAAAAAAAAAAAAAAAAA2Q==
198
	</data>
199
	<key>name</key>
200
	<string>Pro irBlack</string>
201
	<key>shellExitAction</key>
202
	<integer>1</integer>
203
	<key>type</key>
204
	<string>Window Settings</string>
205
</dict>
206
</plist>
207

 
Comments

Thanks for the theme! Cheers.

Nice! Thanks for posting this. IR Black was looking sad, but now it's back to normal.

Thanks!

Do you have a link to the dark wood background displayed in your screenshot? Also did you have to set variables for CLICOLOR and LSCOLORS? If so what did you set them to. I loaded this theme however all term colors were displayed black/white, even after changing xterm-256color to xterm-color.

export CLICOLOR=1 hopefully helps you there
My background image can be found here or other variants of it by Googling something along the lines of "Black Wood Background"

Thanks for this post. Really enjoying Total Terminal. One question though, whats the weather/calendar desktop widget from?

Glad you like it :) I use Geek Tool plus a series of shell scripts to put the calendar / weather widgets on my desktop. I haven't posted much on my blog lately but this is definitely a good idea for my next article.

Thanks for taking the time to figure out /and/ document this - you saved me a ton of time. My eyes thank you too - the Terminal defaults are terrible, and after the upgrade to Lion I thought I was going to be in trouble.

Fantastic. Thanks for this.

Thanks for the tutorial, but the modified .terminal isn't working. I can't import... Can you please take a look at it? However, i did import the old theme and it worked, but when i execute "ls", i get no colours at all...
What is wrong?

When I download the modified theme/copy your code into a .terminal file, my OS tells me "The file is corrupt. You may be able to obtain a fresh copy of the file from its author."

This is so helpful! I finally get my terminal theme back!

Thanks a lot!

Very useful, thank you! Tip: make sure your .terminal is valid XML and you don't include the text comment that comes with the gist. Otherwise you won't have a valid file, and you won't be able to load the theme.

Thanks Levy!

I just noticed there were a few comments about the file being corrupt. It seems the code block I pasted above was missing some of the xml markup that is in the Gist version. I corrected this and both should work now (keeping in mind one must remove the comments from the Gist version).

When i try insert the into any file .terminal, the Terminal.app says the file is corrupt!!!
So?

See Levy's comment above :)