aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 */