lets try pretend to be xterm-256color and see how this works?
SVN revision: 74333
This commit is contained in:
parent
7bce758c1d
commit
a40115fb3b
|
@ -68,21 +68,21 @@ const Color colors256[256] =
|
||||||
{
|
{
|
||||||
// basic 16 repeated
|
// basic 16 repeated
|
||||||
{ 0x00, 0x00, 0x00, 0xff }, // COL_BLACK
|
{ 0x00, 0x00, 0x00, 0xff }, // COL_BLACK
|
||||||
{ 0xcc, 0x33, 0x33, 0xff }, // COL_RED
|
{ 0xc0, 0x00, 0x00, 0xff }, // COL_RED
|
||||||
{ 0x33, 0xcc, 0x33, 0xff }, // COL_GREEN
|
{ 0x00, 0xc0, 0x00, 0xff }, // COL_GREEN
|
||||||
{ 0xcc, 0x88, 0x33, 0xff }, // COL_YELLOW
|
{ 0xc0, 0xc0, 0x00, 0xff }, // COL_YELLOW
|
||||||
{ 0x33, 0x33, 0xcc, 0xff }, // COL_BLUE
|
{ 0x00, 0x00, 0xc0, 0xff }, // COL_BLUE
|
||||||
{ 0xcc, 0x33, 0xcc, 0xff }, // COL_MAGENTA
|
{ 0xc0, 0x00, 0xc0, 0xff }, // COL_MAGENTA
|
||||||
{ 0x33, 0xcc, 0xcc, 0xff }, // COL_CYAN
|
{ 0x00, 0xc0, 0xc0, 0xff }, // COL_CYAN
|
||||||
{ 0xcc, 0xcc, 0xcc, 0xff }, // COL_WHITE
|
{ 0xc0, 0xc0, 0xc0, 0xff }, // COL_WHITE
|
||||||
|
|
||||||
{ 0x66, 0x66, 0x66, 0xff }, // COL_BLACK
|
{ 0x80, 0x80, 0x80, 0xff }, // COL_BLACK
|
||||||
{ 0xff, 0x66, 0x66, 0xff }, // COL_RED
|
{ 0xff, 0x80, 0x80, 0xff }, // COL_RED
|
||||||
{ 0x66, 0xff, 0x66, 0xff }, // COL_GREEN
|
{ 0x80, 0xff, 0x80, 0xff }, // COL_GREEN
|
||||||
{ 0xff, 0xff, 0x66, 0xff }, // COL_YELLOW
|
{ 0xff, 0xff, 0x80, 0xff }, // COL_YELLOW
|
||||||
{ 0x66, 0x66, 0xff, 0xff }, // COL_BLUE
|
{ 0x80, 0x80, 0xff, 0xff }, // COL_BLUE
|
||||||
{ 0xff, 0x66, 0xff, 0xff }, // COL_MAGENTA
|
{ 0xff, 0x80, 0xff, 0xff }, // COL_MAGENTA
|
||||||
{ 0x66, 0xff, 0xff, 0xff }, // COL_CYAN
|
{ 0x80, 0xff, 0xff, 0xff }, // COL_CYAN
|
||||||
{ 0xff, 0xff, 0xff, 0xff }, // COL_WHITE
|
{ 0xff, 0xff, 0xff, 0xff }, // COL_WHITE
|
||||||
|
|
||||||
// pure 6x6x6 colorcube
|
// pure 6x6x6 colorcube
|
||||||
|
|
|
@ -310,7 +310,9 @@ termpty_new(const char *cmd, int w, int h, int backscroll)
|
||||||
/* TODO: should we reset signals here? */
|
/* TODO: should we reset signals here? */
|
||||||
|
|
||||||
// pretend to be xterm
|
// pretend to be xterm
|
||||||
putenv("TERM=xterm");
|
// putenv("TERM=xterm");
|
||||||
|
putenv("TERM=xterm-256color");
|
||||||
|
putenv("XTERM_256_COLORS=1");
|
||||||
execvp(args[0], (char *const *)args);
|
execvp(args[0], (char *const *)args);
|
||||||
exit(127); /* same as system() for failed commands */
|
exit(127); /* same as system() for failed commands */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue