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: smorr on Aug 25, '04 12:55:21PM
Very cool -- thanks for the tip

I didn't like all the . files so I took the liberty of condensing it to one osascript call that will do the same. Then I added text color (normal and bold) as 2 additional calls in the .login Here is my .login file

# 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"}'

     

[ Reply to This | # ]
less painful pastels
Authored by: SOX on Aug 25, '04 02:18:51PM

try setting those -1,0,0 color values to permuations of 60000,50000,40000 for more eye-pleasing pastels. the defaults make you want to scoop your eyes out with a spoon.



[ Reply to This | # ]
less painful pastels
Authored by: smorr on Aug 25, '04 04:01:08PM

So that explains the seizures -- thanks!



[ Reply to This | # ]
less painful pastels
Authored by: JJ on Aug 26, '04 07:25:50AM

could you give an example? only for -1,0,0.... and how do permutations work?



[ Reply to This | # ]