diff options
author | terminaldweller <thabogre@gmail.com> | 2021-05-15 18:52:43 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-05-15 18:52:43 +0000 |
commit | 8929c4f40c4c1c9f752e6bf42f92c9abb3855536 (patch) | |
tree | e11daea36b8a87614cafa4de88eacb85b1c4ecd6 /terms.c | |
parent | Update ChangeLog (diff) | |
download | w3m-8929c4f40c4c1c9f752e6bf42f92c9abb3855536.tar.gz w3m-8929c4f40c4c1c9f752e6bf42f92c9abb3855536.zip |
changes the colors.
Diffstat (limited to 'terms.c')
-rw-r--r-- | terms.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 */ |