From 8929c4f40c4c1c9f752e6bf42f92c9abb3855536 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Sat, 15 May 2021 23:22:43 +0430 Subject: changes the colors. --- terms.c | 6 ++++-- 1 file 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 */ -- cgit v1.2.3