diff options
-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 */ |