Strange prompt color issue with Solarized and OSX 10.11 Terminal.app

1

1

I am trying out some Terminal.app customization and have switched from the stock bash to zsh with oh-my-zsh. I have installed patched Powerline fonts and the a port of Solarized theme for the 256-color OSX Terminal (like everyone else) from here.

This is nitpicking, but the last triangle in the prompt shows up in a slightly altered color. Here's a picture.

Notice the brighter triangle at the end of the prompt.

Any ideas on how to fix this?

erikejan

Posted 2016-06-29T14:29:46.007

Reputation: 11

Notice that the blue triangle after \NUCLEUS\nucleus and before Master matches the other blue correctly. Are you looking in the source code? There may be some conditional statement that adjusts the saturation or hue or whatever if it's the last in the line, or something along those lines. If you can narrow in on how these colors are handled in the source and share what you find, perhaps we can help you figure it out. Have you asked the developers on GitHub? – benJephunneh – 2016-06-29T15:32:27.007

@benJephunneh The "agnoster" theme's source is located here. It sounds like your probably right in that the problem is in the prompt customization. However, given that I'm new at this customization, the source is complete gibberish to me.

– erikejan – 2016-06-29T15:46:53.730

They mention this in the code's comments: # In order for this theme to render correctly, you will need a [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). Make sure you have a recent version: the code points that Powerline uses changed in 2012, and older versions will display incorrectly, in confusing ways. Also look here: https://github.com/robbyrussell/oh-my-zsh/issues/4352 – benJephunneh – 2016-06-29T15:57:09.080

@benJephunneh Thank you! Looks like I'm forced to get iTerm2 after all... – erikejan – 2016-06-29T16:14:30.663

@egmont Thanks, though I've tried that. It appears to be as benJephunneh said that Terminal.app has "minimum contrast enforcement" that can't be tweaked. – erikejan – 2016-06-29T20:00:40.680

No answers