diff options
author | Rich Felker <dalias@aerifal.cx> | 2006-10-12 09:08:39 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2006-10-12 09:08:39 +0000 |
commit | b1810d2fc0312c36b65bf26cc411473ef3e91db9 (patch) | |
tree | 6cb0f3597dc8fd5860c5b0fb697ed770f59ddeb1 /term.c | |
parent | 65d1709c918dc981e389d63059954dc5664c8d33 (diff) |
remove nasty hack for backwards colors in default pc/linux palette
(actually it's just moved to dblbuf.c for now, but this makes it
easier to remove in the future when proper color palette config
is implemented.)
Diffstat (limited to 'term.c')
-rw-r--r-- | term.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -190,9 +190,6 @@ static void csi(struct uuterm *t, unsigned c) break; case 'm': for (i=0; i<t->nparam; i++) { - static const unsigned char cmap[] = { - 0, 4, 2, 6, 1, 5, 3, 7 - }; static const unsigned short attr[] = { UU_ATTR_BOLD, UU_ATTR_DIM, 0, UU_ATTR_UL, UU_ATTR_BLINK, 0, @@ -208,10 +205,10 @@ static void csi(struct uuterm *t, unsigned c) t->attr &= ~attr[t->param[i]-21]; } else if (t->param[i]-30 < 8) { t->attr &= ~UU_ATTR_FG; - t->attr |= cmap[(t->param[i] - 30)]; + t->attr |= t->param[i] - 30; } else if (t->param[i]-40 < 8) { t->attr &= ~UU_ATTR_BG; - t->attr |= cmap[(t->param[i] - 40)] << 4; + t->attr |= t->param[i] - 40 << 4; } } break; |