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


Click here to return to the 'Dynamically change background colors in iTerm' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Dynamically change background colors in iTerm
Authored by: spirp on Dec 27, '04 07:37:25AM

First, yes, I want to change the background color of the current iTerm when I su in an iTerm, but not when running Terminal (unfortunatley I'm not aware of a method to determine wether I'm doind this in an iTerm or a Terminal (except maybe sourcing a separate script from iTerms bookmarks-thingie).

Secondly, I know all the brackets and stuff are quite ugly, but that was the only way I could get it to do what I wanted (that is, supressing job control-output and stuff). Also, if I didn't exec the 'su $*', it would lock up after the first setBackground-function call. Didn't bother to look in to it any further, so that's why it's an ugly hack ;) It works fine for me though :)



[ Reply to This | # ]