[IPython-dev] default colorscheme
David Warde-Farley
wardefar at iro.umontreal.ca
Wed Jul 6 03:43:19 EDT 2011
On 2011-07-06, at 1:50 AM, MinRK wrote:
> Thanks for tracking it down!
>
> That looks pretty rough. I'm not sure it's worth adding all that,
> since it doesn't technically get the current window, only the default
> profile, but it's closer than nothing. Also, what's the best way to
> evaluate whether an rgb value is 'light' or 'dark'?
Well, the default profile can be retrieved, but "window 0" for Terminal.app is the frontmost window, apparently:
>> tell application "Terminal"
>> set thing to background color of window 0
>> end tell
will do the trick.
(The reason it was "name" in the first one was to test if this actually did get the current window, without mucking with my color settings.)
David
More information about the IPython-dev
mailing list