Comments (8)
What terminal and color scheme are you using?
from bash-powerline.
gnome-terminal, solarized-dark.
from bash-powerline.
Solarized colors do not exactly match the color scheme of your terminal. See the table at http://ethanschoonover.com/solarized
The Values
L*a*b values are canonical (White D65, Reference D50), other values are matched in sRGB space.
SOLARIZED HEX 16/8 TERMCOL XTERM/HEX L*A*B RGB HSB
--------- ------- ---- ------- ----------- ---------- ----------- -----------
base03 #002b36 8/4 brblack 234 #1c1c1c 15 -12 -12 0 43 54 193 100 21
base02 #073642 0/4 black 235 #262626 20 -12 -12 7 54 66 192 90 26
base01 #586e75 10/7 brgreen 240 #585858 45 -07 -07 88 110 117 194 25 46
base00 #657b83 11/7 bryellow 241 #626262 50 -07 -07 101 123 131 195 23 51
base0 #839496 12/6 brblue 244 #808080 60 -06 -03 131 148 150 186 13 59
base1 #93a1a1 14/4 brcyan 245 #8a8a8a 65 -05 -02 147 161 161 180 9 63
base2 #eee8d5 7/7 white 254 #e4e4e4 92 -00 10 238 232 213 44 11 93
base3 #fdf6e3 15/7 brwhite 230 #ffffd7 97 00 10 253 246 227 44 10 99
yellow #b58900 3/3 yellow 136 #af8700 60 10 65 181 137 0 45 100 71
orange #cb4b16 9/3 brred 166 #d75f00 50 50 55 203 75 22 18 89 80
red #dc322f 1/1 red 160 #d70000 50 65 45 220 50 47 1 79 86
magenta #d33682 5/5 magenta 125 #af005f 50 65 -05 211 54 130 331 74 83
violet #6c71c4 13/5 brmagenta 61 #5f5faf 50 15 -45 108 113 196 237 45 77
blue #268bd2 4/4 blue 33 #0087ff 55 -10 -45 38 139 210 205 82 82
cyan #2aa198 6/6 cyan 37 #00afaf 60 -35 -05 42 161 152 175 74 63
green #859900 2/2 green 64 #5f8700 60 -20 65 133 153 0 68 100 60
Solarized blue is not #0087ff but rather #268bd2. #0087ff is the closest match if you use the terminal's default color scheme. For best result you should change your terminal's color scheme. Unfortunately Solarized does not offer a prebuilt color scheme for gnome-terminal.
from bash-powerline.
The palette I'm using is gnome-terminal-colors-solarized, and it looks quite accurate:
Indeed, blue is #268bd2
here.
In the bash-powerline script, I see
readonly FG_BLUE="\[$(tput setaf 33)\]"
Doesn't this set blue to #0087ff
?
from bash-powerline.
It sets the foreground to color 33, and your terminal decides what actual color to use for color 33. What's the value of $TERM
in your terminal?
from bash-powerline.
It sets the foreground to color 33, and your terminal decides what actual color to use for color 33.
Hm, really? This seems to be the issue then, 33
produces #0087ff
for me, tested with
for i in {0..255} ; do
printf "\x1b[48;5;%sm%3d\e[0m " "$i" "$i";
if (( i == 15 )) || (( i > 15 )) && (( (i-15) % 6 == 0 )); then
printf "\n";
fi;
done
$ echo $TERM
xterm-256color
from bash-powerline.
It's indeed very strange. Solarized used color 33 as blue for 256-color terminals, and it should produce sRGB(38, 139, 210) if your terminal is properly configured. Maybe you should try a different terminal emulator and see if this is a bug in gnome-terminal.
from bash-powerline.
Alright, I'll dig more in this direction. Thanks for the help! Will reopen in case I find a bug in bash-powerline.
from bash-powerline.
Related Issues (14)
- PS1 for short prompt possible? HOT 1
- 'Open new tab' In MacOS Sierra Terminal opens in the home folder always HOT 4
- Thing of beauty
- Doesn't seem to start up in WSL
- Slow all of a sudden. HOT 1
- Branch not showing on system with older versions of git HOT 1
- support for sourced python virtual environments HOT 1
- an wierd "a" infront of github tags HOT 1
- Would you please use the following code HOT 2
- Project activity HOT 1
- Can't work in Mac HOT 1
- Show git stash status?
- terminal title
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bash-powerline.