HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
muesli
termenv
Go2021–2021
muesli / termenv

termenv

Advanced ANSI style & color support for your terminal applications

3Distinct people
3Mentions
0Explicit recommenders
2KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Advanced ANSI style & color support for your terminal applications

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by day3 dated mentions

Observed mentions: 2021-03-23 14:31:09 UTC to 2021-04-04 07:47:12 UTC.

0122021-03-23 00:00:00 UTC to 2021-03-24 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsMar 232021-03-24 00:00:00 UTC to 2021-03-25 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-03-25 00:00:00 UTC to 2021-03-26 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-03-26 00:00:00 UTC to 2021-03-27 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-03-27 00:00:00 UTC to 2021-03-28 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-03-28 00:00:00 UTC to 2021-03-29 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-03-29 00:00:00 UTC to 2021-03-30 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsMar 292021-03-30 00:00:00 UTC to 2021-03-31 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-03-31 00:00:00 UTC to 2021-04-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-04-01 00:00:00 UTC to 2021-04-02 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-04-02 00:00:00 UTC to 2021-04-03 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-04-03 00:00:00 UTC to 2021-04-04 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-04-04 00:00:00 UTC to 2021-04-05 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 commentsApr 4

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Mar 232021-03-23 00:00:00 UTC2021-03-24 00:00:00 UTC101
Mar 242021-03-24 00:00:00 UTC2021-03-25 00:00:00 UTC000
Mar 252021-03-25 00:00:00 UTC2021-03-26 00:00:00 UTC000
Mar 262021-03-26 00:00:00 UTC2021-03-27 00:00:00 UTC000
Mar 272021-03-27 00:00:00 UTC2021-03-28 00:00:00 UTC000
Mar 282021-03-28 00:00:00 UTC2021-03-29 00:00:00 UTC000
Mar 292021-03-29 00:00:00 UTC2021-03-30 00:00:00 UTC000
Mar 302021-03-30 00:00:00 UTC2021-03-31 00:00:00 UTC000
Mar 312021-03-31 00:00:00 UTC2021-04-01 00:00:00 UTC000
Apr 12021-04-01 00:00:00 UTC2021-04-02 00:00:00 UTC000
Apr 22021-04-02 00:00:00 UTC2021-04-03 00:00:00 UTC000
Apr 32021-04-03 00:00:00 UTC2021-04-04 00:00:00 UTC000
Apr 42021-04-04 00:00:00 UTC2021-04-05 00:00:00 UTC202

What Hacker News says

3 sources
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 distressingly 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. It’ll try to guess whether to use 16 colours, 256 colours or 24-bit colour and do some kind of mapping down if necessary (which I bet this app makes a total hash of, probably not having chosen the colours carefully). But the way it figures out the terminal’s background colour… ugh. Some terminals will support it
Read the rest
, 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 a light terminal (which you can get in Command Prompt by running `color f0`): 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 naturally map to real-world colour understanding, which is what something like this would prefer to be able to do. Things are just barely OK if you just want colours with no inherent semantics. So… yeah, might be nice if they used the 16 colours, but I can readily understand them not doing so, and if they did do so, although it’d make it better for some, it’d make it worse for others. Where does the balance lie? I dunno.
In Tz: A Time Zone Helper

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.