Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The problem here is that the 8 (or 16) ANSI colors are labels for just that: colors. 0 for black, 1 for red, etc. What OP is suggesting is more "abstract" labels, probably like "error" or "warning". More akin to text editor themes, which assign colors to particular semantic groups.


The labels are abstract. You can make them whatever color you want. Basically every terminal theme does this.


Perhaps in theory. Almost every application under the sun I've encountered expects 1 to be red, or 4 to be blue, or 3 to be yellow, or whatever.

As an example, take solarized, or really any of the base16 themes. When I've used solarized in the past, many terminal programs that expect to print something in red are actually printing in a slightly-dimmed-background color, or purple, or something else where the intention of the tool author and the intention of the theme author conflict.


The abstraction level is not high enough. As labels goes, color1 doesn't have the same semantic strength than error_color.


The less you know about them, the higher the abstraction. A program can distribute meaning over colorN in any way it wants. Any fixed semantic mapping would prove insufficient in the universe of all possible programs.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: