aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-05-15 18:52:43 +0000
committerterminaldweller <thabogre@gmail.com>2021-05-15 18:52:43 +0000
commit8929c4f40c4c1c9f752e6bf42f92c9abb3855536 (patch)
treee11daea36b8a87614cafa4de88eacb85b1c4ecd6
parentUpdate ChangeLog (diff)
downloadw3m-8929c4f40c4c1c9f752e6bf42f92c9abb3855536.tar.gz
w3m-8929c4f40c4c1c9f752e6bf42f92c9abb3855536.zip
changes the colors.
-rw-r--r--terms.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/terms.c b/terms.c
index 6dece45..deca179 100644
--- a/terms.c
+++ b/terms.c
@@ -1679,7 +1679,8 @@ static char *
color_seq(int colmode)
{
static char seqbuf[32];
- sprintf(seqbuf, "\033[%dm", ((colmode >> 8) & 7) + 30);
+ /* sprintf(seqbuf, "\033[%dm", ((colmode >> 8) & 7) + 30); */
+ sprintf(seqbuf, "\x1b[38;5;%dm", ((colmode >> 8) & 7) + 30);
return seqbuf;
}
@@ -1696,7 +1697,8 @@ static char *
bcolor_seq(int colmode)
{
static char seqbuf[32];
- sprintf(seqbuf, "\033[%dm", ((colmode >> 12) & 7) + 40);
+ /* sprintf(seqbuf, "\033[%dm", ((colmode >> 12) & 7) + 40); */
+ sprintf(seqbuf, "\x1b[38;5;%dm", ((colmode >> 12) & 7) + 40);
return seqbuf;
}
#endif /* USE_BG_COLOR */