Show HN: Lip Gloss is a CSS-like layout library for the terminal for Go
1–7 of 7 posts
Re: Show HN: Lip Gloss is a CSS-like layout library for the terminal for Go
#2Re: Show HN: Lip Gloss is a CSS-like layout library for the terminal for Go
#3Re: Show HN: Lip Gloss is a CSS-like layout library for the terminal for Go
#4How can it detect termin background color?
https://github.com/muesli/termenv/blob/d1b90ad4a4915162648dd...
(There’s a different version of it for Windows.)
Re: Show HN: Lip Gloss is a CSS-like layout library for the terminal for Go
#5How can it detect termin background color?
This is the function they are using to detect the background color: https://github.com/muesli/termenv/blob/d1b90ad4a4915162648dd... (There’s a different version of it for Windows.)
https://github.com/muesli/termenv/blob/d1b90ad4a4915162648dd...
Re: Show HN: Lip Gloss is a CSS-like layout library for the terminal for Go
#6Earlier quoted context omitted.
This is the function they are using to detect the background color: https://github.com/muesli/termenv/blob/d1b90ad4a4915162648dd... (There’s a different version of it for Windows.)
The windows one just returns default black, which is correct in most cases since very few change it to something else. https://github.com/muesli/termenv/blob/d1b90ad4a4915162648dd...
Re: Show HN: Lip Gloss is a CSS-like layout library for the terminal for Go
#7For some values of "CSS" and "ANSI".
I will dig into a bit when I return to office computer...