[IPython-dev] default colorscheme

MinRK benjaminrk at gmail.com
Wed Jul 6 01:50:16 EDT 2011


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'?

-MinRK


On Tue, Jul 5, 2011 at 22:12, David Warde-Farley
<wardefar at iro.umontreal.ca> wrote:
> On 2011-07-06, at 1:10 AM, David Warde-Farley wrote:
>
>> To retrieve the default background color for the frontmost window of Terminal.app:
>>
>> dwf at strafe:~/src$ osascript
>> tell application "Terminal"
>>    set thing to name of window 0
>> end tell
>> <Ctrl-D>
>> 0, 0, 0
>
> Oops. "name" above should obviously read "background color".



More information about the IPython-dev mailing list