prompt-toolkit / ptpython

A better Python REPL
BSD 3-Clause "New" or "Revised" License
5.2k stars 277 forks source link

Detecting background color on Windows #129

Open klonuo opened 8 years ago

klonuo commented 8 years ago

As a reference: https://github.com/ipython/ipython/issues/9723

clipboard01

Same happens with ptpython too (in lack of screenshots ;) ).

In bellow shot default color setting for MS PS is shown. Background color is not detected correctly. It seems like it is expected ColorTable00 to be background, but I don't really know much about terminals...

untitled

Of course, it doesn't matter that this is PS shell. If I select background color other the ColorTable00 for cmd shell - same result.

jonathanslenders commented 8 years ago

Hi @klonuo Can you please try to install the latest prompt_toolkit? pip install -U prompt_toolkit. Normally, this should be fixed now. Please let me know if this is not the case.

klonuo commented 8 years ago

Looks great. Thanks

klonuo commented 8 years ago

There is small issue though... If I try to change console background while ptpython is running, it wont allow - ptpython seems to reset background to the background when it was initialized.