fathyb / carbonyl

Chromium running inside your terminal
BSD 3-Clause "New" or "Revised" License
14.44k stars 282 forks source link

Respect color scheme #123

Open piranna opened 1 year ago

piranna commented 1 year ago

If terminal is black-over-white (or similar) set CSS system default color scheme as "light", if it's white-over-black (like usual terminals), set it to "dark", this way web apps can adjust better. Maybe a CLI option would be nice too, nor if this or in general user preferences are already managed by Chrome itself someway.

john-peterson commented 1 month ago

Easiest would be to disable colour codes completely and just write letters. This is what I mean with colour codes


strace  ./carbonyl --no-sandbox -d https://jsbench.me/ 2> >(ack write)
write(1, "\33[?1049l\33[?1003l\33[?1006l\33[?25h", 30) = 30