summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-07-24 02:16:21 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-07-24 02:16:21 +0000
commita40115fb3baacb82e63b91f7114246f2d712b488 (patch)
treed346cf3fb489b2eb7ddd572841f36a46ef2107f5 /src
parent7bce758c1d2747613817566ddf866396c8fae6fb (diff)
lets try pretend to be xterm-256color and see how this works?
SVN revision: 74333
Diffstat (limited to 'src')
-rw-r--r--src/bin/col.c30
-rw-r--r--src/bin/termpty.c4
2 files changed, 18 insertions, 16 deletions
diff --git a/src/bin/col.c b/src/bin/col.c
index 5293703..1787f2f 100644
--- a/src/bin/col.c
+++ b/src/bin/col.c
@@ -68,21 +68,21 @@ const Color colors256[256] =
68{ 68{
69 // basic 16 repeated 69 // basic 16 repeated
70 { 0x00, 0x00, 0x00, 0xff }, // COL_BLACK 70 { 0x00, 0x00, 0x00, 0xff }, // COL_BLACK
71 { 0xcc, 0x33, 0x33, 0xff }, // COL_RED 71 { 0xc0, 0x00, 0x00, 0xff }, // COL_RED
72 { 0x33, 0xcc, 0x33, 0xff }, // COL_GREEN 72 { 0x00, 0xc0, 0x00, 0xff }, // COL_GREEN
73 { 0xcc, 0x88, 0x33, 0xff }, // COL_YELLOW 73 { 0xc0, 0xc0, 0x00, 0xff }, // COL_YELLOW
74 { 0x33, 0x33, 0xcc, 0xff }, // COL_BLUE 74 { 0x00, 0x00, 0xc0, 0xff }, // COL_BLUE
75 { 0xcc, 0x33, 0xcc, 0xff }, // COL_MAGENTA 75 { 0xc0, 0x00, 0xc0, 0xff }, // COL_MAGENTA
76 { 0x33, 0xcc, 0xcc, 0xff }, // COL_CYAN 76 { 0x00, 0xc0, 0xc0, 0xff }, // COL_CYAN
77 { 0xcc, 0xcc, 0xcc, 0xff }, // COL_WHITE 77 { 0xc0, 0xc0, 0xc0, 0xff }, // COL_WHITE
78 78
79 { 0x66, 0x66, 0x66, 0xff }, // COL_BLACK 79 { 0x80, 0x80, 0x80, 0xff }, // COL_BLACK
80 { 0xff, 0x66, 0x66, 0xff }, // COL_RED 80 { 0xff, 0x80, 0x80, 0xff }, // COL_RED
81 { 0x66, 0xff, 0x66, 0xff }, // COL_GREEN 81 { 0x80, 0xff, 0x80, 0xff }, // COL_GREEN
82 { 0xff, 0xff, 0x66, 0xff }, // COL_YELLOW 82 { 0xff, 0xff, 0x80, 0xff }, // COL_YELLOW
83 { 0x66, 0x66, 0xff, 0xff }, // COL_BLUE 83 { 0x80, 0x80, 0xff, 0xff }, // COL_BLUE
84 { 0xff, 0x66, 0xff, 0xff }, // COL_MAGENTA 84 { 0xff, 0x80, 0xff, 0xff }, // COL_MAGENTA
85 { 0x66, 0xff, 0xff, 0xff }, // COL_CYAN 85 { 0x80, 0xff, 0xff, 0xff }, // COL_CYAN
86 { 0xff, 0xff, 0xff, 0xff }, // COL_WHITE 86 { 0xff, 0xff, 0xff, 0xff }, // COL_WHITE
87 87
88 // pure 6x6x6 colorcube 88 // pure 6x6x6 colorcube
diff --git a/src/bin/termpty.c b/src/bin/termpty.c
index d6ec000..06eee06 100644
--- a/src/bin/termpty.c
+++ b/src/bin/termpty.c
@@ -310,7 +310,9 @@ termpty_new(const char *cmd, int w, int h, int backscroll)
310 /* TODO: should we reset signals here? */ 310 /* TODO: should we reset signals here? */
311 311
312 // pretend to be xterm 312 // pretend to be xterm
313 putenv("TERM=xterm"); 313// putenv("TERM=xterm");
314 putenv("TERM=xterm-256color");
315 putenv("XTERM_256_COLORS=1");
314 execvp(args[0], (char *const *)args); 316 execvp(args[0], (char *const *)args);
315 exit(127); /* same as system() for failed commands */ 317 exit(127); /* same as system() for failed commands */
316 } 318 }