{"id":271,"date":"2010-11-14T00:24:21","date_gmt":"2010-11-14T05:24:21","guid":{"rendered":"http:\/\/ebixio.com\/blog\/?p=271"},"modified":"2010-11-14T00:24:21","modified_gmt":"2010-11-14T05:24:21","slug":"cygwin-terminal-colors","status":"publish","type":"post","link":"http:\/\/ebixio.com\/blog\/2010\/11\/14\/cygwin-terminal-colors\/","title":{"rendered":"CygWin terminal colors"},"content":{"rendered":"<p>Many of the default ANSI colors used by the CygWin terminal are almost unreadable. For example, the blue that is used for directories in a file listing is pretty dark and hard to read on a black background. This limits the color palette that can be used in things such as the PS1 shell prompt. Try the following script (<a href='http:\/\/ebixio.com\/blog\/wp-content\/uploads\/2010\/11\/colortable16.sh'>colortable16.sh<\/a>) to see what your colors currently look like.<\/p>\n<p>The colors can be changed by clicking on the system menu in the upper-left corner and selecting &#8220;Properties&#8221;. I decided to use the same colors as the Gnome terminal.<\/p>\n<p>This is how the colors are defined in CygWin by default:<\/p>\n<table>\n<tr>\n<th>Color<\/th>\n<th>R<\/th>\n<th>G<\/th>\n<th>B<\/th>\n<\/tr>\n<tr>\n<td>Black<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>Blue<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>128<\/td>\n<\/tr>\n<tr>\n<td>Green<\/td>\n<td>0<\/td>\n<td>128<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>Cyan<\/td>\n<td>0<\/td>\n<td>128<\/td>\n<td>128<\/td>\n<\/tr>\n<tr>\n<td>Red<\/td>\n<td>128<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>Pruple<\/td>\n<td>128<\/td>\n<td>0<\/td>\n<td>128<\/td>\n<\/tr>\n<tr>\n<td>Brown<\/td>\n<td>128<\/td>\n<td>128<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>Light Gray<\/td>\n<td>192<\/td>\n<td>192<\/td>\n<td>192<\/td>\n<\/tr>\n<tr>\n<td>Dark Gray<\/td>\n<td>128<\/td>\n<td>128<\/td>\n<td>128<\/td>\n<\/tr>\n<tr>\n<td>Light Blue<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>255<\/td>\n<\/tr>\n<tr>\n<td>Light Green<\/td>\n<td>0<\/td>\n<td>255<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>Light Cyan<\/td>\n<td>0<\/td>\n<td>255<\/td>\n<td>255<\/td>\n<\/tr>\n<tr>\n<td>Light Red<\/td>\n<td>255<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>Light Purple<\/td>\n<td>255<\/td>\n<td>0<\/td>\n<td>255<\/td>\n<\/tr>\n<tr>\n<td>Light Yellow<\/td>\n<td>255<\/td>\n<td>255<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>White<\/td>\n<td>255<\/td>\n<td>255<\/td>\n<td>255<\/td>\n<\/tr>\n<\/table>\n<p>This is how they should be changed so that they&#8217;re more usable:<\/p>\n<table>\n<tr>\n<th>Color<\/th>\n<th>R<\/th>\n<th>G<\/th>\n<th>B<\/th>\n<\/tr>\n<tr>\n<td>Black<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>Blue<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>170<\/td>\n<\/tr>\n<tr>\n<td>Green<\/td>\n<td>0<\/td>\n<td>170<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>Cyan<\/td>\n<td>0<\/td>\n<td>170<\/td>\n<td>170<\/td>\n<\/tr>\n<tr>\n<td>Red<\/td>\n<td>170<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>Pruple<\/td>\n<td>170<\/td>\n<td>0<\/td>\n<td>170<\/td>\n<\/tr>\n<tr>\n<td>Brown<\/td>\n<td>170<\/td>\n<td>85<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>Light Gray<\/td>\n<td>170<\/td>\n<td>170<\/td>\n<td>170<\/td>\n<\/tr>\n<tr>\n<td>Dark Gray<\/td>\n<td>85<\/td>\n<td>85<\/td>\n<td>85<\/td>\n<\/tr>\n<tr>\n<td>Light Blue<\/td>\n<td>85<\/td>\n<td>85<\/td>\n<td>255<\/td>\n<\/tr>\n<tr>\n<td>Light Green<\/td>\n<td>85<\/td>\n<td>255<\/td>\n<td>85<\/td>\n<\/tr>\n<tr>\n<td>Light Cyan<\/td>\n<td>85<\/td>\n<td>255<\/td>\n<td>255<\/td>\n<\/tr>\n<tr>\n<td>Light Red<\/td>\n<td>255<\/td>\n<td>85<\/td>\n<td>85<\/td>\n<\/tr>\n<tr>\n<td>Light Purple<\/td>\n<td>255<\/td>\n<td>85<\/td>\n<td>255<\/td>\n<\/tr>\n<tr>\n<td>Light Yellow<\/td>\n<td>255<\/td>\n<td>255<\/td>\n<td>85<\/td>\n<\/tr>\n<tr>\n<td>White<\/td>\n<td>255<\/td>\n<td>255<\/td>\n<td>255<\/td>\n<\/tr>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Many of the default ANSI colors used by the CygWin terminal are almost unreadable. For example, the blue that is used for directories in a file listing is pretty dark and hard to read on a black background. This limits the color palette that can be used in things such as the PS1 shell prompt. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[5,6,8],"class_list":["post-271","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-bash","tag-cygwin","tag-windows"],"_links":{"self":[{"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/posts\/271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/comments?post=271"}],"version-history":[{"count":0,"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/posts\/271\/revisions"}],"wp:attachment":[{"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/media?parent=271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/categories?post=271"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ebixio.com\/blog\/wp-json\/wp\/v2\/tags?post=271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}