Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
This is very neat! I can use this at work where I talk to people from all over the world on a regular basis. Will it displace https://worldtimebuddy.com/ in my workflow? I don't know, but it'll be fun to find out.
Not being one of the Cool Kids who has a golang environment ready to go, I logged into my trusty CentOS 7 box and installed golang with "yum install go" which went fine. I cloned the rep and attempted to build:
git clone https://github.com/oz/tz
yum -y install git222
I also had to reinstall golang with 'yum install go' and now I am rewarded with a completed 'go build'. Neat! I am looking forward to checking this little program out.
[1] https://github.com/golang/go/issues/16104
Look, you and I may have sane ANSI 16 colours, but itāll be a very significant fraction of people that donāt (and almost no one will customise the next 240 colours). Remember things like that thereās a fairly high chance that blue is almost invisible against black, and even bright blueās contrast is commonly much too lowāto say nothing of the limited palette range.
But what this program is doing is using termenvās HasDarkBackground function to decide whether the terminal is light or dark, and is then specifying RGB colours. Iād guess that itāll try to guess whether to use 16 colours, 256 colours or 24-bit colour, but I donāt know. But the way it figures out the terminalās background colourā¦ ugh. Some terminals will support it, but for many itāll fail and just assume black. Looks like on unix you could set an environment variable COLORFGBG to override this, https://github.com/muesli/termenv/blob/6bb55115565c27f4cc681..., but if youāre on Windows, tough luck, apparently youāre not allowed to have run `color f0` (Command Prompt) or similar: https://github.com/muesli/termenv/blob/537e36cb0472a69a3c828....
The simple fact of the matter is that there are no particularly good solutions for handling colour in terminals if you want the colours to cohere and map to real-world colour understanding, which is what something like this would prefer to be able to do.