teracow / googliser

a fast BASH multiple-image downloader
GNU General Public License v3.0
207 stars 38 forks source link

macOS all: terminal colours wrong? #69

Closed teracow closed 4 years ago

teracow commented 4 years ago

This one has been bothering me for some time. Googliser colour display on macOS always shows the wrong colours. Example: "google" should appear in the same colours shown on the base Google web search-page.

After reading a few posts about this, it seems macOS changes the result of colour ANSI codes echoed to the terminal in an effort to make things "look better".

Is this correct, or is it possible to reliably use colours in a script running in the macOS terminal?

teracow commented 4 years ago

Debian 10.2 & Konsole: googliser appearance on Debian 10 2

macOS 10.13 High Sierra & Terminal: googliser appearance on 10 13 High Sierra

macOS 10.14 Mojave & Terminal (dark desktop theme): googliser appearance on 10 14 Mojave

macOS 10.15 Catalina & Terminal (dark desktop theme): googliser appearance on 10 15 Catalina

MBtech commented 4 years ago

So the colors appear fine in iTerm with dark theme but in terminal they do indeed appear incorrectly with the dark theme.

teracow commented 4 years ago

Good work on that colour fix @MBtech. :)