Closed shirishph closed 3 years ago
Thanks. First just a quick note that you are using the wrong parameter for the 2nd parameter on clear_buffer. It should be an attribute, not a colour. But that won't be the issue here...
These should be completely standard colour settings, however some terminals take liberties with the ansi colour scheme. I'm guessing the MacOS terminal is in that list based on this trail: https://superuser.com/questions/100281/make-the-background-black-not-white-on-linux-mac-os-x-terminal
Are you using a profile that defines the background to be a gray rather than black?
Thanks for your response. You are right. Mac is messing the colours. It works just fine on a Raspberry Pi 4b. For the record: I had some silly Pillow errors which eventually got solved by using this answer. Basically did this sudo apt-get install libjpeg-dev zlib1g-dev
before doing pip3 install asciimatics
iTerm on Mac interprets ANSI colours different to expectations. To reset as preferred change these settings
Thanks for digging into that. Glad it now works for you.
Given that you've taken the time to explain what's needed, we should update the troubleshooting docs.
Would be happy to do that, if you tell me how the docs are updated and what process is followed
Thanks. Docs are written in restructured text and built using sphinx. All happens automatically in the travis builds, but you can run those commands and then look at the files locally when you make changes.
We should add a new section with a title like "my application colours are wrong", where you can explain the generic problem and then how to fix it for iterm.
If you could check out the existing installation advice and tweak if neede for RPi, that would be good too.
Oh and the key doc is here - https://github.com/peterbrittain/asciimatics/blob/master/doc/source/troubleshooting.rst
Describe the bug Unable to
clear_buffer
such that the background is all blackTo Reproduce
Expected behavior
clear_buffer
's last param is the background colour and is given as black. When rendered the screen has a background that appears to be grayScreenshots --none--
System details (please complete the following information):
Additional context --none--