frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Terminals should generate the 256-color palette

https://gist.github.com/jake-stewart/0a8ea46159a7da2c808e5be2177e1783
50•tosh•1h ago

Comments

King-Aaron•1h ago
> Complex and color-heavy programs struggle with such a small palette.

Damn if only there was some other system that could be operating with that in mind

worthless-trash•10m ago
I feel like you're saying one operating system does it better, but I fail to think of one.
jimrandomh•1h ago
Yeah, when you point it out, this makes complete sense and every terminal should probably add this feature. I think I would generalize this to 24-bit color as well; 16 colors isn't enough to identify a unique tonemap, but if you fiddle with the parameters a bit I think it shouldn't be too hard to come up with something hacky that works.

Although, this should probably be optional (both as an option for terminals to have in their own settings, and via an escape sequence that opts out), because some users will have configured some programs with a color scheme that they don't want transformed. For example, if your terminal uses the Solarized color scheme, and your text editor _also_ uses the Solarized color scheme, then this could lead to double-applyig a color transform and getting something odd.

aragilar•1h ago
This definitely seems like a sensible starting option to generate 256 colours from a custom set of 8 (and then let the really pedantic users fiddle with the extended set). I would presume for "standard" themes these values would be pregenerated and adjusted slightly if needed.
johncoltrane•58m ago
The good thing with the 256c palette is that colors in the 16-255 range are fixed, which gives us a very high level of confidence that 146 will be a muted violet and so on. This is very useful for colorscheme developers because it allows us to provide a pretty good and consistent experience across the widest range of terminal emulators.

If the 256c palette is generated from a -- potentially wild -- 16c palette then there is no guarantee anymore that 146 will indeed be the 146 I expect.

Turning 16-255 into the same kind of minefield as 0-15 seems very misguided to me.

jauntywundrkind•43m ago
This will be fascinating to see in practice, with ghostty for example shipping these changes! I expect that the concern you have here will largely be for naught, with some exception. What are some terminal apps you think might be affected, what are test cases?

I didn't read in fully, but what I was thinking in my head is not that we would just totally replace the rest of the colors with arbitrary palette. But that we would sub in better versions of the palette that also used user colors as the base. What was magenta is derived from what the user picked from blue and red.

There's always been such tension between design/creative and users. Apps & designers want their own brand identity, want creative control to make things just so. And are willing to throw user preference & desire on the pyre to get that exacting control. Personally that was always rubbed me extremely the wrong way; I would way rather allow some weirdness & funkiness in, if it leaves the user in control. But I understand the risk aversion, understand the Murphy's law corporatism that makes people and companies want to build strong laws that forbid anything but strictly approved systems, for fear that things go wrong. I understand. But I also things that's a dogshit world to live in.

johncoltrane•17m ago
I have a bunch of Vim colorschemes under my belt.

0-15 are, as I said, a minefield because they are user-customizable: there is no guarantee whatsoever that my user's 1 will be the same dark-ish red as mine… or that it will be dark-ish… or that it will even be vaguely red-ish. It is actually somewhat fun to design colorschemes within those crazy constraints but oh well.

On the other side of the spectrum, truecolors is a nice idea in principle but support is still spotty and inconsistent. In theory, this gives me, the designer, full control over the colors used in the UI, which is a good thing for us and for my users. In fine, if I want my colorscheme to be usable by most users, then I can't blindly rely on this.

Which leaves me with 16-255, which are more widely supported than truecolors and, more importantly, dependable. They have problems, as mentioned in the article, but their _fixed_ nature gives me confidence that the background color of the status-line, for example, will look exactly the same -- and exactly how I want it to look -- in all my user's environments. Which, again, is good for my users and for me. Losing that confidence is what worries me, here.

Like you said, maybe 146 will still be a muted violet —— just not exactly the same -- but I'm not sure about this and I think that, at the minimum, this "feature" should be put behind a checkbox/flag.

dwb•58m ago
Agree, and I love how concise, yet persuasive and practical this proposal is.
k3vinw•40m ago
It’s a messy situation for sure and what lead me to discover tinted theming: https://github.com/tinted-theming/base24/

It’s been a fairly decent stop gap measure. I use tinted shell to switch between color schemes.

stackghost•31m ago
It's perennially baffling to me why we're still clinging to VT220/xterm compatible terminals. I even see people claiming they prefer working in the terminal, though it's not clear to me what type of work those people are doing.

Give me a proper graphical application any day, but I recognize that it's historically been a lot more work to produce a GUI in the pre-LLM era.

But golly gee whizz if we're going to keep the command line around, can we move on from 1983?

consp•23m ago
Why? There is huge compatibility layer build on top of this and changing even these minor things will break stuff in places you do not expect. Want a fancy terminal? Install another one. By default most allow changing to many terminal formats. Break things to move forward is fun when it's not your problem to solve down the line.
vanviegen•10m ago
GUI apps are good for discoverability. They generally are not optimized for rapid use by power users though. That's of course not an inherent limitation of GUI apps, it's just that dominant paradigms hardly seem to consider power users.

I'm still annoyed and baffled by the fact that Ubuntu had searchable application menus 10 years ago, which were awesome and worked for just about any program, and then dropped them when they abandoned Unity. And neither KDE not Gnome thought to bring them back. In stead, many apps have since dropped application menus entirely, in favour of... some mishmash of icons and ad hoc menu buttons?

Also, even in the post-LLM era, building a decent GUI app is a lot more work than building a decent terminal app.

15 years later, Microsoft morged my diagram

https://nvie.com/posts/15-years-later/
267•cheeaun•1h ago•86 comments

Halt and Catch Fire: TV's Best Drama You've Probably Never Heard Of (2021)

https://www.sceneandheardnu.com/content/halt-and-catch-fire
377•walterbell•5h ago•197 comments

Terminals should generate the 256-color palette

https://gist.github.com/jake-stewart/0a8ea46159a7da2c808e5be2177e1783
52•tosh•1h ago•12 comments

Claude Sonnet 4.6

https://www.anthropic.com/news/claude-sonnet-4-6
1056•adocomplete•14h ago•928 comments

A DuckDB-based metabase alternative

https://github.com/taleshape-com/shaper
20•wowi42•1h ago•4 comments

Thank HN: You helped save 33k lives

736•chaseadam17•15h ago•76 comments

BarraCUDA Open-source CUDA compiler targeting AMD GPUs

https://github.com/Zaneham/BarraCUDA
274•rurban•11h ago•103 comments

Stardex (YC S21) Is Hiring

https://www.ycombinator.com/companies/stardex/jobs/lag1C1P-customer-success-engineer-ai-data-migr...
1•sanketc•1h ago

Show HN: AsteroidOS 2.0 – Nobody asked, we shipped anyway

https://asteroidos.org/news/2-0-release/index.html
357•moWerk•12h ago•40 comments

Thousands of CEOs just admitted AI had no impact on employment or productivity

https://fortune.com/2026/02/17/ai-productivity-paradox-ceo-study-robert-solow-information-technol...
410•virgildotcodes•6h ago•283 comments

Semantic Diffusion (2006)

https://martinfowler.com/bliki/SemanticDiffusion.html
6•andsoitis•2d ago•0 comments

Show HN: Beautiful interactive explainers generated with Claude Code

https://paraschopra.github.io/explainers/
28•paraschopra•1h ago•8 comments

The Economics of a Super Bowl Ad

https://ro.co/perspectives/super-bowl-economics/
28•nnmg•2d ago•26 comments

Gentoo on Codeberg

https://www.gentoo.org/news/2026/02/16/codeberg.html
319•todsacerdoti•14h ago•110 comments

Minimal x86 Kernel Zig

https://github.com/lopespm/zig-minimal-kernel-x86
92•lopespm•8h ago•28 comments

Reverse Engineering Sid Meier's Railroad Tycoon for DOS from 1990

https://www.vogons.org/viewtopic.php?t=105451
75•LowLevelMahn•3d ago•15 comments

TinyIce: Single-binary Icecast2-compatible server (auto-HTTPS, multi-tenant)

https://github.com/DatanoiseTV/tinyice
6•sylwester•2h ago•1 comments

Using go fix to modernize Go code

https://go.dev/blog/gofix
328•todsacerdoti•15h ago•69 comments

Show HN: Breadboard – a modern HyperCard for building web apps on the canvas

https://breadboards.io/
12•simquat•1d ago•0 comments

So you want to build a tunnel

https://practical.engineering/blog/2026/2/17/so-you-want-to-build-a-tunnel
210•crescit_eundo•15h ago•84 comments

Async/Await on the GPU

https://www.vectorware.com/blog/async-await-on-gpu/
188•Philpax•15h ago•50 comments

'My Words Are Like an Uncontrollable Dog': On Life with Nonfluent Aphasia (2025)

https://thereader.mitpress.mit.edu/my-words-are-like-an-uncontrollable-dog-on-life-with-nonfluent...
52•anarbadalov•9h ago•12 comments

Show HN: I wrote a technical history book on Lisp

https://berksoft.ca/gol/
198•cdegroot•16h ago•75 comments

Quamina and Claude, Case 1

https://www.tbray.org/ongoing/When/202x/2026/02/06/Q-Plus-C-Ch1
18•zdw•3d ago•2 comments

Use Microsoft Office Shortcuts in Libre Office

https://github.com/Zaki101Aslam/MS-office-shortcuts-for-Libre-Office
44•Zaki101Aslam•3d ago•10 comments

I converted 2D conventional flight tracking into 3D

https://aeris.edbn.me/?city=SFO
247•kewonit•17h ago•48 comments

HackMyClaw

https://hackmyclaw.com/
296•hentrep•15h ago•148 comments

Automatia and the Case for Vanilla

https://fwsgonzo.medium.com/automatia-and-the-case-for-vanilla-b3209cdf1583
5•fwsgonzo•3d ago•0 comments

Assistant to the Regional Manager

https://smallpotatoes.paulbloom.net/p/assistant-to-the-regional-manager
93•NaOH•4d ago•34 comments

I swear the UFO is coming any minute

https://www.experimental-history.com/p/i-swear-the-ufo-is-coming-any-minute
149•Ariarule•10h ago•51 comments