aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/col.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2012-10-15 08:18:42 +0000
committerBoris Faure <billiob@gmail.com>2012-10-15 08:18:42 +0000
commitca40aa9b8e8b0ce67d2d9023e357d4c31dee9419 (patch)
tree705bb73a8bc2dbf479aa1885be4fb5e8a0134510 /src/bin/col.c
parentterminology: reset scroll markers once done (diff)
downloadterminology-ca40aa9b8e8b0ce67d2d9023e357d4c31dee9419.tar.gz
Revert "terminology: use solarized colors"
SVN revision: 77988
Diffstat (limited to 'src/bin/col.c')
-rw-r--r--src/bin/col.c179
1 files changed, 99 insertions, 80 deletions
diff --git a/src/bin/col.c b/src/bin/col.c
index e638810..a08e1b9 100644
--- a/src/bin/col.c
+++ b/src/bin/col.c
@@ -4,29 +4,29 @@ const Color colors[2][2][12] =
{
{ // normal
{ // normal
- { 0x83, 0x94, 0x96, 0xff }, // COL_DEF
- { 0x07, 0x36, 0x42, 0xff }, // COL_BLACK
- { 0xdc, 0x32, 0x2f, 0xff }, // COL_RED
- { 0x85, 0x99, 0x00, 0xff }, // COL_GREEN
- { 0xb5, 0x89, 0x00, 0xff }, // COL_YELLOW
- { 0x26, 0x8b, 0xd2, 0xff }, // COL_BLUE
- { 0xd3, 0x36, 0x82, 0xff }, // COL_MAGENTA
- { 0x2a, 0xa1, 0x98, 0xff }, // COL_CYAN
- { 0xee, 0xe8, 0xd5, 0xff }, // COL_WHITE
+ { 0xaa, 0xaa, 0xaa, 0xff }, // COL_DEF
+ { 0x00, 0x00, 0x00, 0xff }, // COL_BLACK
+ { 0xcc, 0x33, 0x33, 0xff }, // COL_RED
+ { 0x33, 0xcc, 0x33, 0xff }, // COL_GREEN
+ { 0xcc, 0x88, 0x33, 0xff }, // COL_YELLOW
+ { 0x33, 0x33, 0xcc, 0xff }, // COL_BLUE
+ { 0xcc, 0x33, 0xcc, 0xff }, // COL_MAGENTA
+ { 0x33, 0xcc, 0xcc, 0xff }, // COL_CYAN
+ { 0xcc, 0xcc, 0xcc, 0xff }, // COL_WHITE
{ 0x00, 0x00, 0x00, 0x00 }, // COL_INVIS
{ 0x22, 0x22, 0x22, 0xff }, // COL_INVERSE
- { 0x83, 0x94, 0x96, 0xff }, // COL_INVERSEBG
+ { 0xaa, 0xaa, 0xaa, 0xff }, // COL_INVERSEBG
},
{ // bright/bold
{ 0xee, 0xee, 0xee, 0xff }, // COL_DEF
- { 0x00, 0x2b, 0x36, 0xff }, // COL_BLACK
- { 0xcb, 0x4b, 0x16, 0xff }, // COL_RED
- { 0x58, 0x6e, 0x75, 0xff }, // COL_GREEN
- { 0x65, 0x7b, 0x83, 0xff }, // COL_YELLOW
- { 0x83, 0x94, 0x96, 0xff }, // COL_BLUE
- { 0x6c, 0x71, 0xc4, 0xff }, // COL_MAGENTA
- { 0x93, 0xa1, 0xa1, 0xff }, // COL_CYAN
- { 0xfd, 0xf6, 0xe3, 0xff }, // COL_WHITE
+ { 0x66, 0x66, 0x66, 0xff }, // COL_BLACK
+ { 0xff, 0x66, 0x66, 0xff }, // COL_RED
+ { 0x66, 0xff, 0x66, 0xff }, // COL_GREEN
+ { 0xff, 0xff, 0x66, 0xff }, // COL_YELLOW
+ { 0x66, 0x66, 0xff, 0xff }, // COL_BLUE
+ { 0xff, 0x66, 0xff, 0xff }, // COL_MAGENTA
+ { 0x66, 0xff, 0xff, 0xff }, // COL_CYAN
+ { 0xff, 0xff, 0xff, 0xff }, // COL_WHITE
{ 0x00, 0x00, 0x00, 0x00 }, // COL_INVIS
{ 0x11, 0x11, 0x11, 0xff }, // COL_INVERSE
{ 0xee, 0xee, 0xee, 0xff }, // COL_INVERSEBG
@@ -34,18 +34,18 @@ const Color colors[2][2][12] =
},
{ // intense
{ // normal
- { 0xee, 0xee, 0xee, 0xff }, // COL_DEF
- { 0x00, 0x2b, 0x36, 0xff }, // COL_BLACK
- { 0xcb, 0x4b, 0x16, 0xff }, // COL_RED
- { 0x58, 0x6e, 0x75, 0xff }, // COL_GREEN
- { 0x65, 0x7b, 0x83, 0xff }, // COL_YELLOW
- { 0x83, 0x94, 0x96, 0xff }, // COL_BLUE
- { 0x6c, 0x71, 0xc4, 0xff }, // COL_MAGENTA
- { 0x93, 0xa1, 0xa1, 0xff }, // COL_CYAN
- { 0xfd, 0xf6, 0xe3, 0xff }, // COL_WHITE
+ { 0xdd, 0xdd, 0xdd, 0xff }, // COL_DEF
+ { 0x00, 0x00, 0x00, 0xff }, // COL_BLACK
+ { 0xcc, 0x88, 0x88, 0xff }, // COL_RED
+ { 0x88, 0xcc, 0x88, 0xff }, // COL_GREEN
+ { 0xcc, 0xaa, 0x88, 0xff }, // COL_YELLOW
+ { 0x88, 0x88, 0xcc, 0xff }, // COL_BLUE
+ { 0xcc, 0x88, 0xcc, 0xff }, // COL_MAGENTA
+ { 0x88, 0xcc, 0xcc, 0xff }, // COL_CYAN
+ { 0xcc, 0xcc, 0xcc, 0xff }, // COL_WHITE
{ 0x00, 0x00, 0x00, 0x00 }, // COL_INVIS
{ 0x11, 0x11, 0x11, 0xff }, // COL_INVERSE
- { 0xee, 0xee, 0xee, 0xff }, // COL_INVERSEBG
+ { 0xcc, 0xcc, 0xcc, 0xff }, // COL_INVERSEBG
},
{ // bright/bold
{ 0xff, 0xff, 0xff, 0xff }, // COL_DEF
@@ -67,23 +67,42 @@ const Color colors[2][2][12] =
const Color colors256[256] =
{
// basic 16 repeated
- { 0x07, 0x36, 0x42, 0xff }, // COL_BLACK
- { 0xdc, 0x32, 0x2f, 0xff }, // COL_RED
- { 0x85, 0x99, 0x00, 0xff }, // COL_GREEN
- { 0xb5, 0x89, 0x00, 0xff }, // COL_YELLOW
- { 0x26, 0x8b, 0xd2, 0xff }, // COL_BLUE
- { 0xd3, 0x36, 0x82, 0xff }, // COL_MAGENTA
- { 0x2a, 0xa1, 0x98, 0xff }, // COL_CYAN
- { 0xee, 0xe8, 0xd5, 0xff }, // COL_WHITE
-
- { 0x00, 0x2b, 0x36, 0xff }, // COL_BLACK
- { 0xcb, 0x4b, 0x16, 0xff }, // COL_RED
- { 0x58, 0x6e, 0x75, 0xff }, // COL_GREEN
- { 0x65, 0x7b, 0x83, 0xff }, // COL_YELLOW
- { 0x83, 0x94, 0x96, 0xff }, // COL_BLUE
- { 0x6c, 0x71, 0xc4, 0xff }, // COL_MAGENTA
- { 0x93, 0xa1, 0xa1, 0xff }, // COL_CYAN
- { 0xfd, 0xf6, 0xe3, 0xff }, // COL_WHITE
+/*
+ { 0x00, 0x00, 0x00, 0xff }, // COL_BLACK
+ { 0xcc, 0x33, 0x33, 0xff }, // COL_RED
+ { 0x33, 0xcc, 0x33, 0xff }, // COL_GREEN
+ { 0xcc, 0x88, 0x33, 0xff }, // COL_YELLOW
+ { 0x33, 0x33, 0xcc, 0xff }, // COL_BLUE
+ { 0xcc, 0x33, 0xcc, 0xff }, // COL_MAGENTA
+ { 0x33, 0xcc, 0xcc, 0xff }, // COL_CYAN
+ { 0xcc, 0xcc, 0xcc, 0xff }, // COL_WHITE
+
+ { 0x66, 0x66, 0x66, 0xff }, // COL_BLACK
+ { 0xff, 0x66, 0x66, 0xff }, // COL_RED
+ { 0x66, 0xff, 0x66, 0xff }, // COL_GREEN
+ { 0xff, 0xff, 0x66, 0xff }, // COL_YELLOW
+ { 0x66, 0x66, 0xff, 0xff }, // COL_BLUE
+ { 0xff, 0x66, 0xff, 0xff }, // COL_MAGENTA
+ { 0x66, 0xff, 0xff, 0xff }, // COL_CYAN
+ { 0xff, 0xff, 0xff, 0xff }, // COL_WHITE
+ */
+ { 0x00, 0x00, 0x00, 0xff }, // COL_BLACK
+ { 0xc0, 0x00, 0x00, 0xff }, // COL_RED
+ { 0x00, 0xc0, 0x00, 0xff }, // COL_GREEN
+ { 0xc0, 0xc0, 0x00, 0xff }, // COL_YELLOW
+ { 0x00, 0x00, 0xc0, 0xff }, // COL_BLUE
+ { 0xc0, 0x00, 0xc0, 0xff }, // COL_MAGENTA
+ { 0x00, 0xc0, 0xc0, 0xff }, // COL_CYAN
+ { 0xc0, 0xc0, 0xc0, 0xff }, // COL_WHITE
+
+ { 0x80, 0x80, 0x80, 0xff }, // COL_BLACK
+ { 0xff, 0x80, 0x80, 0xff }, // COL_RED
+ { 0x80, 0xff, 0x80, 0xff }, // COL_GREEN
+ { 0xff, 0xff, 0x80, 0xff }, // COL_YELLOW
+ { 0x80, 0x80, 0xff, 0xff }, // COL_BLUE
+ { 0xff, 0x80, 0xff, 0xff }, // COL_MAGENTA
+ { 0x80, 0xff, 0xff, 0xff }, // COL_CYAN
+ { 0xff, 0xff, 0xff, 0xff }, // COL_WHITE
// pure 6x6x6 colorcube
{ 0x00, 0x00, 0x00, 0xff },
@@ -92,245 +111,245 @@ const Color colors256[256] =
{ 0x00, 0x00, 0xaf, 0xff },
{ 0x00, 0x00, 0xd7, 0xff },
{ 0x00, 0x00, 0xff, 0xff },
-
+
{ 0x00, 0x5f, 0x00, 0xff },
{ 0x00, 0x5f, 0x5f, 0xff },
{ 0x00, 0x5f, 0x87, 0xff },
{ 0x00, 0x5f, 0xaf, 0xff },
{ 0x00, 0x5f, 0xd7, 0xff },
{ 0x00, 0x5f, 0xff, 0xff },
-
+
{ 0x00, 0x87, 0x00, 0xff },
{ 0x00, 0x87, 0x5f, 0xff },
{ 0x00, 0x87, 0x87, 0xff },
{ 0x00, 0x87, 0xaf, 0xff },
{ 0x00, 0x87, 0xd7, 0xff },
{ 0x00, 0x87, 0xff, 0xff },
-
+
{ 0x00, 0xaf, 0x00, 0xff },
{ 0x00, 0xaf, 0x5f, 0xff },
{ 0x00, 0xaf, 0x87, 0xff },
{ 0x00, 0xaf, 0xaf, 0xff },
{ 0x00, 0xaf, 0xd7, 0xff },
{ 0x00, 0xaf, 0xff, 0xff },
-
+
{ 0x00, 0xd7, 0x00, 0xff },
{ 0x00, 0xd7, 0x5f, 0xff },
{ 0x00, 0xd7, 0x87, 0xff },
{ 0x00, 0xd7, 0xaf, 0xff },
{ 0x00, 0xd7, 0xd7, 0xff },
{ 0x00, 0xd7, 0xff, 0xff },
-
+
{ 0x00, 0xff, 0x00, 0xff },
{ 0x00, 0xff, 0x5f, 0xff },
{ 0x00, 0xff, 0x87, 0xff },
{ 0x00, 0xff, 0xaf, 0xff },
{ 0x00, 0xff, 0xd7, 0xff },
{ 0x00, 0xff, 0xff, 0xff },
-
+
{ 0x5f, 0x00, 0x00, 0xff },
{ 0x5f, 0x00, 0x5f, 0xff },
{ 0x5f, 0x00, 0x87, 0xff },
{ 0x5f, 0x00, 0xaf, 0xff },
{ 0x5f, 0x00, 0xd7, 0xff },
{ 0x5f, 0x00, 0xff, 0xff },
-
+
{ 0x5f, 0x5f, 0x00, 0xff },
{ 0x5f, 0x5f, 0x5f, 0xff },
{ 0x5f, 0x5f, 0x87, 0xff },
{ 0x5f, 0x5f, 0xaf, 0xff },
{ 0x5f, 0x5f, 0xd7, 0xff },
{ 0x5f, 0x5f, 0xff, 0xff },
-
+
{ 0x5f, 0x87, 0x00, 0xff },
{ 0x5f, 0x87, 0x5f, 0xff },
{ 0x5f, 0x87, 0x87, 0xff },
{ 0x5f, 0x87, 0xaf, 0xff },
{ 0x5f, 0x87, 0xd7, 0xff },
{ 0x5f, 0x87, 0xff, 0xff },
-
+
{ 0x5f, 0xaf, 0x00, 0xff },
{ 0x5f, 0xaf, 0x5f, 0xff },
{ 0x5f, 0xaf, 0x87, 0xff },
{ 0x5f, 0xaf, 0xaf, 0xff },
{ 0x5f, 0xaf, 0xd7, 0xff },
{ 0x5f, 0xaf, 0xff, 0xff },
-
+
{ 0x5f, 0xd7, 0x00, 0xff },
{ 0x5f, 0xd7, 0x5f, 0xff },
{ 0x5f, 0xd7, 0x87, 0xff },
{ 0x5f, 0xd7, 0xaf, 0xff },
{ 0x5f, 0xd7, 0xd7, 0xff },
{ 0x5f, 0xd7, 0xff, 0xff },
-
+
{ 0x5f, 0xff, 0x00, 0xff },
{ 0x5f, 0xff, 0x5f, 0xff },
{ 0x5f, 0xff, 0x87, 0xff },
{ 0x5f, 0xff, 0xaf, 0xff },
{ 0x5f, 0xff, 0xd7, 0xff },
{ 0x5f, 0xff, 0xff, 0xff },
-
+
{ 0x87, 0x00, 0x00, 0xff },
{ 0x87, 0x00, 0x5f, 0xff },
{ 0x87, 0x00, 0x87, 0xff },
{ 0x87, 0x00, 0xaf, 0xff },
{ 0x87, 0x00, 0xd7, 0xff },
{ 0x87, 0x00, 0xff, 0xff },
-
+
{ 0x87, 0x5f, 0x00, 0xff },
{ 0x87, 0x5f, 0x5f, 0xff },
{ 0x87, 0x5f, 0x87, 0xff },
{ 0x87, 0x5f, 0xaf, 0xff },
{ 0x87, 0x5f, 0xd7, 0xff },
{ 0x87, 0x5f, 0xff, 0xff },
-
+
{ 0x87, 0x87, 0x00, 0xff },
{ 0x87, 0x87, 0x5f, 0xff },
{ 0x87, 0x87, 0x87, 0xff },
{ 0x87, 0x87, 0xaf, 0xff },
{ 0x87, 0x87, 0xd7, 0xff },
{ 0x87, 0x87, 0xff, 0xff },
-
+
{ 0x87, 0xaf, 0x00, 0xff },
{ 0x87, 0xaf, 0x5f, 0xff },
{ 0x87, 0xaf, 0x87, 0xff },
{ 0x87, 0xaf, 0xaf, 0xff },
{ 0x87, 0xaf, 0xd7, 0xff },
{ 0x87, 0xaf, 0xff, 0xff },
-
+
{ 0x87, 0xd7, 0x00, 0xff },
{ 0x87, 0xd7, 0x5f, 0xff },
{ 0x87, 0xd7, 0x87, 0xff },
{ 0x87, 0xd7, 0xaf, 0xff },
{ 0x87, 0xd7, 0xd7, 0xff },
{ 0x87, 0xd7, 0xff, 0xff },
-
+
{ 0x87, 0xff, 0x00, 0xff },
{ 0x87, 0xff, 0x5f, 0xff },
{ 0x87, 0xff, 0x87, 0xff },
{ 0x87, 0xff, 0xaf, 0xff },
{ 0x87, 0xff, 0xd7, 0xff },
{ 0x87, 0xff, 0xff, 0xff },
-
+
{ 0xaf, 0x00, 0x00, 0xff },
{ 0xaf, 0x00, 0x5f, 0xff },
{ 0xaf, 0x00, 0x87, 0xff },
{ 0xaf, 0x00, 0xaf, 0xff },
{ 0xaf, 0x00, 0xd7, 0xff },
{ 0xaf, 0x00, 0xff, 0xff },
-
+
{ 0xaf, 0x5f, 0x00, 0xff },
{ 0xaf, 0x5f, 0x5f, 0xff },
{ 0xaf, 0x5f, 0x87, 0xff },
{ 0xaf, 0x5f, 0xaf, 0xff },
{ 0xaf, 0x5f, 0xd7, 0xff },
{ 0xaf, 0x5f, 0xff, 0xff },
-
+
{ 0xaf, 0x87, 0x00, 0xff },
{ 0xaf, 0x87, 0x5f, 0xff },
{ 0xaf, 0x87, 0x87, 0xff },
{ 0xaf, 0x87, 0xaf, 0xff },
{ 0xaf, 0x87, 0xd7, 0xff },
{ 0xaf, 0x87, 0xff, 0xff },
-
+
{ 0xaf, 0xaf, 0x00, 0xff },
{ 0xaf, 0xaf, 0x5f, 0xff },
{ 0xaf, 0xaf, 0x87, 0xff },
{ 0xaf, 0xaf, 0xaf, 0xff },
{ 0xaf, 0xaf, 0xd7, 0xff },
{ 0xaf, 0xaf, 0xff, 0xff },
-
+
{ 0xaf, 0xd7, 0x00, 0xff },
{ 0xaf, 0xd7, 0x5f, 0xff },
{ 0xaf, 0xd7, 0x87, 0xff },
{ 0xaf, 0xd7, 0xaf, 0xff },
{ 0xaf, 0xd7, 0xd7, 0xff },
{ 0xaf, 0xd7, 0xff, 0xff },
-
+
{ 0xaf, 0xff, 0x00, 0xff },
{ 0xaf, 0xff, 0x5f, 0xff },
{ 0xaf, 0xff, 0x87, 0xff },
{ 0xaf, 0xff, 0xaf, 0xff },
{ 0xaf, 0xff, 0xd7, 0xff },
{ 0xaf, 0xff, 0xff, 0xff },
-
+
{ 0xd7, 0x00, 0x00, 0xff },
{ 0xd7, 0x00, 0x5f, 0xff },
{ 0xd7, 0x00, 0x87, 0xff },
{ 0xd7, 0x00, 0xaf, 0xff },
{ 0xd7, 0x00, 0xd7, 0xff },
{ 0xd7, 0x00, 0xff, 0xff },
-
+
{ 0xd7, 0x5f, 0x00, 0xff },
{ 0xd7, 0x5f, 0x5f, 0xff },
{ 0xd7, 0x5f, 0x87, 0xff },
{ 0xd7, 0x5f, 0xaf, 0xff },
{ 0xd7, 0x5f, 0xd7, 0xff },
{ 0xd7, 0x5f, 0xff, 0xff },
-
+
{ 0xd7, 0x87, 0x00, 0xff },
{ 0xd7, 0x87, 0x5f, 0xff },
{ 0xd7, 0x87, 0x87, 0xff },
{ 0xd7, 0x87, 0xaf, 0xff },
{ 0xd7, 0x87, 0xd7, 0xff },
{ 0xd7, 0x87, 0xff, 0xff },
-
+
{ 0xd7, 0xaf, 0x00, 0xff },
{ 0xd7, 0xaf, 0x5f, 0xff },
{ 0xd7, 0xaf, 0x87, 0xff },
{ 0xd7, 0xaf, 0xaf, 0xff },
{ 0xd7, 0xaf, 0xd7, 0xff },
{ 0xd7, 0xaf, 0xff, 0xff },
-
+
{ 0xd7, 0xd7, 0x00, 0xff },
{ 0xd7, 0xd7, 0x5f, 0xff },
{ 0xd7, 0xd7, 0x87, 0xff },
{ 0xd7, 0xd7, 0xaf, 0xff },
{ 0xd7, 0xd7, 0xd7, 0xff },
{ 0xd7, 0xd7, 0xff, 0xff },
-
+
{ 0xd7, 0xff, 0x00, 0xff },
{ 0xd7, 0xff, 0x5f, 0xff },
{ 0xd7, 0xff, 0x87, 0xff },
{ 0xd7, 0xff, 0xaf, 0xff },
{ 0xd7, 0xff, 0xd7, 0xff },
{ 0xd7, 0xff, 0xff, 0xff },
-
+
{ 0xff, 0x00, 0x00, 0xff },
{ 0xff, 0x00, 0x5f, 0xff },
{ 0xff, 0x00, 0x87, 0xff },
{ 0xff, 0x00, 0xaf, 0xff },
{ 0xff, 0x00, 0xd7, 0xff },
{ 0xff, 0x00, 0xff, 0xff },
-
+
{ 0xff, 0x5f, 0x00, 0xff },
{ 0xff, 0x5f, 0x5f, 0xff },
{ 0xff, 0x5f, 0x87, 0xff },
{ 0xff, 0x5f, 0xaf, 0xff },
{ 0xff, 0x5f, 0xd7, 0xff },
{ 0xff, 0x5f, 0xff, 0xff },
-
+
{ 0xff, 0x87, 0x00, 0xff },
{ 0xff, 0x87, 0x5f, 0xff },
{ 0xff, 0x87, 0x87, 0xff },
{ 0xff, 0x87, 0xaf, 0xff },
{ 0xff, 0x87, 0xd7, 0xff },
{ 0xff, 0x87, 0xff, 0xff },
-
+
{ 0xff, 0xaf, 0x00, 0xff },
{ 0xff, 0xaf, 0x5f, 0xff },
{ 0xff, 0xaf, 0x87, 0xff },
{ 0xff, 0xaf, 0xaf, 0xff },
{ 0xff, 0xaf, 0xd7, 0xff },
{ 0xff, 0xaf, 0xff, 0xff },
-
+
{ 0xff, 0xd7, 0x00, 0xff },
{ 0xff, 0xd7, 0x5f, 0xff },
{ 0xff, 0xd7, 0x87, 0xff },
{ 0xff, 0xd7, 0xaf, 0xff },
{ 0xff, 0xd7, 0xd7, 0xff },
{ 0xff, 0xd7, 0xff, 0xff },
-
+
{ 0xff, 0xff, 0x00, 0xff },
{ 0xff, 0xff, 0x5f, 0xff },
{ 0xff, 0xff, 0x87, 0xff },