Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A script to cycle Terminal color/transparency settings' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to cycle Terminal color/transparency settings
Authored by: uurf on Aug 25, '04 01:20:07PM
bash users, add this to your .bashrc:

# will cycle through red, green, blue, black, white, fuschia, aqua, orange, and yellow
osascript -e 'tell application "Terminal" to set background color of window 0 to item ((number of windows) mod 9 +1) of {{-1, -1, 0, -10000}, {-1, 0, 0, -10000}, {0, -1, 0, -10000},{0, 0, -1, -10000}, {0, 0, 0, -10000}, {-1, -1, -1, -10000},{-1, 0, -1, -10000}, {0, -1, -1, -10000}, {-1, 32767, 0, -10000}}'
osascript -e 'tell application "Terminal" to set normal text color of window 0 to item ((number of windows) mod 9 +1 ) of {"black","black","black","white","yellow","blue","black","black","black"}'
osascript -e 'tell application "Terminal" to set bold text color of window 0 to item ((number of windows) mod 9 +1) of {"black","black","black","white","yellow","blue","black","black","black"}'
# don't forget the cursor color
osascript -e 'tell application "Terminal" to set cursor color of window 0 to item ((number of windows) mod 9 +1) of {"black","black","black","white","yellow","blue","black","black","black"}'


(there should be six lines of text - no line feeds - in your .bashrc)

[ Reply to This | # ]

A script to cycle Terminal color/transparency settings
Authored by: uurf on Aug 27, '04 05:00:52AM
hmm, works dandy on the desktop, but get this on my laptop:

## Component Manager: attempting to find symbols in a component alias of type (regR/carP/x!bt)
## Component Manager: attempting to find symbols in a component alias of type (regR/carP/x!bt)
## Component Manager: attempting to find symbols in a component alias of type (regR/carP/x!bt)
## Component Manager: attempting to find symbols in a component alias of type (regR/carP/x!bt)


What happened?

[ Reply to This | # ]
A script to cycle Terminal color/transparency settings
Authored by: kholburn on Dec 22, '04 10:40:30PM

Roxio toast



[ Reply to This | # ]
A script to cycle Terminal color/transparency settings
Authored by: fitzage on Aug 02, '05 01:54:39PM

I created .bashrc in my home folder, and added this information. It didn't do anything. Is there something else I need to do?



[ Reply to This | # ]