10 ms·
That annoying shade of blue (2018)
- leephillips 4y agoThe author is the maintainer of exa, an excellent `ls` replacement that makes effective use of color in the terminal.
- anthk 4y agoI always use Tango for terminals. Simple, usable and that colorscheme it's available everywhere.
- lelandfe 4y ago> If your terminal emulator gets told to make text blue, and instead it makes it unreadable, then you can’t say that’s not a problem with the terminal emulator. Hear, hear. A neat tool to tell you who will be able to read a combination of background and foreground colors: https://www.whocanuse.com/ https://www.whocanuse.com/
- bluedino 4y agoI use an LG 4K TV as a monitor...something about the darker half of the standard 16 terminal colors is incredibly hard to read on this panel. Irritating for screen sharing with people who use default putty settings, small size courier new, default colors. Ugh. Savages.
- Nihilartikel 4y agoIf it's an older panel check to make sure it's not chroma subsampling the red channel. I had one where I had to change settings to keep any text with red from being a muddy mess.
- bluedino 4y agoSwitching to straight HDMI instead of USB-C to HDMI fixed it!
- rbanffy 4y agoWow! Subsampling red is unbelievably stupid. You usually get away with blue, but subsampling red or green is immediately visible.
- astrange 4y agoSubsampling red is about as common as blue. Digital video, digital cameras, PenTile displays… the only full resolution you're getting is green, because that's the most effective way to get luminance. They mostly don't even use good resampling algorithms either.
- rbanffy 4y agoSorry. I'm shortsighted and, I guess, it gives me the superpower of being able to focus red. OTOH, blue/violet is just a blur.
- mwcampbell 4y ago> Irritating for screen sharing with people who use default putty settings, small size courier new, default colors. Ugh. Savages. I'm visually impaired, so if I were to screen-share my PuTTY window, you'd be treated to 22-point bold Consolas and mostly white on black. This points out, though, that for accessibility, frame-buffer sharing is really not ideal. What we really need is some kind of high-level content sharing, where the content is re-rendered on the viewer's machine with their settings.
- praash 4y agohttps://asciinema.org/ https://asciinema.org/ I wish Git(Hub|Lab) READMEs could embed asciinema sessions instead of blurry, bulky, un-seekable GIF clips.
- drewzero1 4y agoI've never figured out how to use it (never had the need) but I've heard GNU 'screen' is capable of sharing the same terminal window to multiple people. Since it runs in the terminal, it would be rendered to each viewer using their own terminal emulator settings.
- zhte415 4y agoNever being a fan of purple, I do feel Ubuntu get it just right as a background colour - over grey and black as defaults. The screenshots in the article highlight this. While it of course can be changed, kudos for whoever did that. Having given up on Ubuntu over Snaps and going with Debian for everything, this is one of the first settings I changed - back to purple. Small things are important.
- dwringer 4y agoI agree, Ubuntu's seems far more legible than the others. The "new Windows console" design still seems a lot closer than the pathological example they show than it does to the Ubuntu text. It is certainly a step toward being more legible but the contrast still doesn't work for me.
- blueflow 4y agoThese "defaults" are the 4-bit colors linearly mapped onto the RGB space. It made the color generation easier to implement in hardware. I think the sensible use case for this color is as background color, like the Norton Commander, derivatives of it, and several other ncurses programs do.
- kurthr 4y agoExactly! I just wish the article got to the real issue, which is that sRGB isn't a linear color space (roughly quadratic) and your eyes perceive blue luminosity as ~10% of the brightness of green (red is ~%50). That means that a half blue (00 00 7F) would be 22% as bright as full blue (00 00 FF) with an apparent luminosity (Lab) of 2.2% compared to full green (FF 00 00) or 1.6% of the luminosity of full white (FF FF FF). No wonder it's hard to see!
- kevin_thibedeau 4y agoThis is a problem introduced by Windows. In VGA and earlier text modes, the dim blue was brighter. https://en.wikipedia.org/wiki/ANSI_escape_code#Colors https://en.wikipedia.org/wiki/ANSI_escape_code#Colors
- rbanffy 4y agoYou can always increase the gain of the blue gun to compensate for how humans misperceive blue.
- kurthr 4y agoUmmm, misperceive blue? Relative to what, green, and red? There is a thing called white balance. Although the eye/mind will adjust to different levels of blue (absent an environmental source) the apparent 10x gain adjustment needed to do this is unlikely to be effective or comfortable to anyone using such a monitor. I suspect the violet halo of such a "white" would be searing and likely not appear balanced in any way.
- deleted 4y ago
- codeflo 4y agoThose colors never looked great, but I remember them being a lot less jarring back then. At least some of the colors weren't pure binary RGB values as claimed in the article. For example, "dark yellow" was closer to a brown #804000 than #808000. Maybe that depended on the graphics card? Otherwise, I'm not sure why many terminal emulators would have gone with a pure dark yellow instead. Also, maybe the overall contrast was lower on CRTs. At least I think the blacks were less dark on early monitors, which might have helped to make the colors look less harsh.
- blueflow 4y agoThe yellow/brown thing was a CGA fix: https://www.aceinnova.com/en/electronics/cga-and-the-brown-color-in-ibm-5153-color-display/ https://www.aceinnova.com/en/electronics/cga-and-the-brown-c...
- rep_lodsb 4y agoCGA used 2/3 brightness (#AA) for the primary colors, then added 1/3 gray (#555555) if the intensity bit was set. The exception is that with low intensity, yellow is turned into brown by reducing green to 1/3 (#AA5500). Unfortunately a lot of terminal emulators get it wrong, the normal colors are too dark and the intensified ones are too saturated! I also remember blue being easier to see in the past, but that is likely my eyes getting worse.
- jiggawatts 4y agoOne of the worst "ossifications" of non-standards is the notion that colour is three channels of 0..255, one each for red, green, and blue. Combined with the incorrect assumption that the scale is linear[1], and you have a perfect combination for a Dunning-Kruger effect: A bunch of programmers[2] who think they've figured out "graphics", but haven't even begun to understand how any of it works. Not any of: light, display technology, colour standards, or even the human eye. A short list of falsehoods programmers believe about vision: - sRGB is the only graphics standard. - Monitors are actually sRGB and follow that standard. - Colour intensities are on a linear scale. - White is 0x00FFFFFF or 255,255,255 - 50% Grey is half of the above: 127,127,127. - Blending colours is just a matter of linear interpolation. - Red, green, and blue have a single consistent definition. - 8 bits is enough for each colour channel. - Okay, 10 bits is enough. - 12 bits is enough, surely. - 0 means black. - Okay, 16 means black on televisions. - Fine, black can have different levels in different standards, but it's always clear which level is black. - At least the white level is consistently defined. [1] Narrator: it's not even remotely linear. [2] Including myself until recently.
- VMG 4y agoThis would make for an excellent blog post
- jiggawatts 4y agoI would, if I thought it would make a difference. It won't. I just bought a new 2022 model flagship television, and its colour management is very visibly broken![1] My partner, who knows nothing about colour standards mentioned that she thought the colours were "off" within minutes of using it. This is the good brand and model according to reviews. I've seen the other brands in the store, and they're markedly worse. Like... stupidly bad. Garish beyond belief. People looking like they're wearing clown makeup. Normal colours looking like neon tubes. Are most people colour blind? Am I weird? Did I marry someone equally weird? Or is it a mistake to just say: red = 0xFF0000, commit the code, and call it a day? It's probably just me. Never mind. [1] Unless I connect an Apple TV to it, on which nothing is broken. It's amazing that only one company on this planet is able to comprehend colour. Every other organisation, propriety limited, corporation, and charity is staffed entirely by colourblind people or robots that see only black and white.
- Beltalowda 4y agoA lot of these colours were probably designed for white backgrounds; the default xterm background colour is white, and many terminals copied that. My old SparcStation uses a white background colour from the moment it boots, etc. I'm not sure how common it was in older systems, but it was definitely a thing. In Vim it's been a fixed problem for ages if you use "set background=dark" by the way.
- blueflow 4y agoHaving a dark background used to be the default in the beginnings with CRT, colored/bright backgrounds look very ugly when you can see the distinct scanlines.
- estebarb 4y agoIf I remember well, back then the black background wasn't perfect black, but something like very dark green. I have recently played again (with a LCD) games that I used to play as a kid with a CRT monitor and in some cases the colors look extremely ugly in the LCD. I don't know why
- blueflow 4y agoAnalog monitors like the CRTs back then suffered from artifact colors[1], LCDs do not. Games that were designed to account for these artifact colors do indeed look worse on LCDs. [1] https://en.wikipedia.org/wiki/Composite_artifact_colors https://en.wikipedia.org/wiki/Composite_artifact_colors
- badsectoracula 4y agoNote that this is for the crappy CRT TVs most people used (some home computers either connected to such TVs or used similarly bad CRTs). This was not an issue on computer monitors that were meant to display crisp text.
- 4y ago
- Turing_Machine 4y agoI thought this was going to be about that butt-ugly Twitter blue, as seen in every crap Bootstrap site on the net.
- flemhans 4y agoMe too!
- forinti 4y agoThis is exactly the same palette the BBC Micro had. It was frustrating to have such a fast computer, high resolution (640×256) and be stuck with those awful colours.
- rbanffy 4y agoIndeed. The C64’s fixed palette resulted in so much better colors. OTOH, the BBC’s palette matched the one from Videotext.
- ProllyInfamous 4y agoSlightly different perspective on [optical] perspective: >Impossible Colors: >https://en.wikipedia.org/wiki/Impossible_color https://en.wikipedia.org/wiki/Impossible_color
- cesaref 4y agoComplaining about colour terminals for nethack? All we had were green screens. But you know, we were happy in those days, though we were poor.
- swayvil 4y agoHeck! Because we were poor!
- deleted 4y ago[deleted]
- swayvil 4y agoNethack, Omega... Angband... Those games are so deep. A true evolutionary sweet spot. I was in love/addiction for a long time. Naturally I have given much thought to what the next step might be. No, not prettier pictures, realtime or 3d. All those newfangled mmorpgs took the obvious, and wrong, turn. Sometimes I think that a different tesselation (than square grid. Something with more directions). And variable size icons. Would that detract?
- anthk 4y agoWith BSD games (specially ATC, Tetris, Trek, Adventure and others) you can have fun with very little. Add Slashem and IF games and you can play with a and with a shitty SVGA card. On "graphical" games, Shadowrun for the Genesis with the 2058 patch (ips.pl it's your friend) it's the only "modern" game I play. And yet Shadowrun pales against Nethack/Slashem's interactivy between monsters, objects, statuses and the world.
- godshatter 4y agoI think there are some modern rogue-likes that use hex layouts rather than square grids. I'm not sure if there is anything more creative than that, but I would be surprised if there weren't. There is a sub-culture out there who are making more modern versions of the traditional rogue-likes. See the r/roguelikedev subreddit for a lot of interesting info on this.
- mminer237 4y agoOnly somewhat related, but it reminds me how Alacritty actually has its green color set as yellow because the creator thinks it looks nicer: https://github.com/alacritty/alacritty/issues/1561 https://github.com/alacritty/alacritty/issues/1561 It's really hard for a terminal developer to trust that what it looks like on your system looks much at all like it will for your users. Also, I see with the new Windows colors that black has a glow now? Does anyone have any more screenshots of that or is that just something the author added? I ask because it is 100% solid black everywhere for me still.
- swayvil 4y agoRemember CGA? Ah yes, MAGENTA+CYAN. Everybody's favorite palette.
- mcv 4y agoOne issue with this article is that it seems to assume that everybody is using a black background. I know PuTTY supported white backgrounds, because that's what I used. White background makes the blue perfectly readable; suddenly it's bright yellow that might be a problem. So anyone looking to fix terminal colours should not just pay attention to blue, or to how they look on black, but also to yellow and how it looks on white.
- layer8 4y agoYou really need two different palettes for white vs. black background if all the (other) colors are to be readable with good contrast on the respective background.
- Beltalowda 4y agoThe problem here is that applications can set a background colour, and that as an application you don't know what colours the user defined. For example Angband just sets the background colour to black (not sure about Nethack), so if you defined colours that work well on a light background you're still going to have a bad time. Quite a few other terminal programs (especially those using ncurses or other interactive TUI interfaces) tend to set a background colour. There isn't really a good way to deal with this using the default 16 colours other than never setting any background colours, which can be a bit limiting for interactive applications. The best solution is to have application support for this and using 256 or 24 bit "true" colours (256-colour support is pretty much universal, and 24 bit colour support is very wide-spread).
- layer8 4y agoThe best solution is for the background color (and possibly other colors) to be configurable for the application, as many applications allow. If a user prefers white or black background, he/she usually prefers it in all applications. 256 or more colors has the drawback that the user can’t configure the colors anymore to his/her needs (light vs. dark, high-contrast, color blindness, etc.), unless the application also provides comprehensive theming support. In that case, the 16-color variant is a much simpler solution.
- aftbit 4y agoI actually find both the "actually readable" and the "something decent" colors harder to distinguish than the original "annoying" colors. (Ctrl-F the source for those quotes to find the images.) I _am_ red/green color-blind but I have never had an issue with blue.
- superjan 4y agoThat is expected to a degree: the revised colors are less saturated because some white is blended in. The point is that they stand out more against a black background. Is that also your observation?
- phkahler 4y agoI spent an unusually large amount of time trying to get this color change just right: https://github.com/solvespace/solvespace/pull/446 https://github.com/solvespace/solvespace/pull/446 It's the blue and yellow only, but IMHO it made Solvespace a lot more readable.
- BWStearns 4y agoI love solvespace. Thanks for contributing to it!
- deleted 4y ago[deleted]
- dylan604 4y ago"I can’t find any documentation on where these colours came from — they seem to have been passed down from terminal to terminal since the dawn of time. But this can’t be a coincidence!" Is it really hard to understand why these colors were chosen? #000 = black. After that, just iterate through the combinations of each combination of replacing the 0 with an F. Full on, full off. That's your choices. never mind 1-E of the in betweens.
- deleted 4y ago[deleted]
- hexo 4y agoSpeaking of annoying, what's up with that gray (#606060) text again.
- JohnFen 4y agoWhy not turn off the colorizing? That's the first thing I do (even outside of NetHack), because the colors often render things unreadable.
- JustSomeNobody 4y agoThere's a lesson here for anyone doing a "dark mode" UI as well. Avoid blue.
- hedgehog 4y agoThe cause is simpler than this article makes it out to be. Older displays had pretty narrow gamuts so very saturated colors washed out to something more legible and the crude palette construction was not much of a problem back then.
- marcosdumay 4y agoYes, and by the time displays were able to reproduce colors with any reasonable fidelity, every sensible application changed those codes to represent some color that reflected what a person would see on a bad monitor. The author is just using a terminal with non-sensible defaults (on way more things than color palette), but tries to pin the flaw into everything else (from nethack to our eyes), instead of putty.
- sbf501 4y agoOn every term that supports 256-bit color I've mapped this to `dodgerblue` for at least two decades.
- todd8 4y agoThis is a reassuring article. I had started to feel like I was losing eyesight because some "themes" are so hard to read, especially those dark themes using the annoying shade of blue. This is especially true for Emacs users. There are so many themes available for Emacs that finding the good ones can be difficult. My advice with respect to Emacs themes, the built in themes are quite good and especially the modus themes (and also the package ef-themes) both by Protesilaos Stavrou.
- ComputerGuru 4y agoSeveral years back, frustrated by this same problem and underlying constraints, I spent a weekend writing a machine-aided cost minification algorithm (aka what most startups call "advanced ML") that used LAB and LUV to try and pick 2x8 colors (the eight colors in dark/bright configurations) where the cost was defined as a) how far apart each of the color pairs was from one another (hue only), b) how far apart each dark/bright color in a pair were from one another, c) how high the contrast against a specific background color (provided as a parameter), d) how far the perceived brightness of any "bright" color differed from the rest of the "bright" colors, e) how far the perceived brightness of any "dark" color differed from the rest of the "dark" colors, f) how far each of the 8 base colors strayed from a range that could passably be called the de facto colors mapped to each of the palette members (e.g. cyan, blue, black, white, etc) so that TUI apps using colors not to distinguish but to draw (expecting "blue" to be a shade of blue) would not be thrown off. Unfortunately I never found the results to be pleasing to the eye. I also think there was something wrong in either the math of the individual cost function factors themselves or the weights assigned to each factor because I didn't feel like the results were properly spaced out or representative of what even a local minima what look like if the math was all correct. I didn't really want to put more time into it than I already had, but I'm convinced that it's possible to generate a fixed set of 2x8 colors that meet these conditions for any given background color (at least one for a black or dark grey background and another palette for a white or off-white background).
- vintermann 4y agoPixel artists have really, really explored that problem space. You might want to check out the palettes on lospec, and the discussions about these things on pixeljoint. I'm not deep into colour theory myself, but I get awed by the diagrams Dawnbringer's palette analyser tool produces, let alone the things pixel artists do to highlight the opportunities and limitations in palette choice.
- rbanffy 4y agoThose simple values worked well in analog CRTs because they didn’t always responded linearly to input voltage. Back then, when producing images where color mattered, you needed to know how your monitor responded to the analog signals (and, often, how the destination screen did). We used to calibrate our monitors. It was also more common to adjust brightness and contrast to suit your preferences. A blue like 4 wasn’t necessarily as invisible then as it is now with our perfectly linear and 100% responsive screens.
- PTOB 4y agoThis reminds me of the way some of those colors give the illusion of depth. I.e. red seems to jump out of the screen and blue seems to receed. I used to think this was limited to computer monitors until I saw a large piece of stained glass that on which the artist juxtaposed red glass and blue glass to the same effect. It was fascinating.