version 1.111, 2012/01/15 19:39:42 |
version 1.112, 2012/01/21 08:23:12 |
|
|
|
|
/* Is this an aixterm colour? */ |
/* Is this an aixterm colour? */ |
colours = tty_term_number(tty->term, TTYC_COLORS); |
colours = tty_term_number(tty->term, TTYC_COLORS); |
if (gc->bg >= 100 && gc->bg <= 107 && colours < 16) { |
if (gc->bg >= 90 && gc->bg <= 97 && colours < 16) { |
gc->bg -= 90; |
gc->bg -= 90; |
gc->attr |= GRID_ATTR_BRIGHT; |
gc->attr |= GRID_ATTR_BRIGHT; |
} |
} |
|
|
} |
} |
|
|
/* Is this an aixterm bright colour? */ |
/* Is this an aixterm bright colour? */ |
if (bg >= 100 && bg <= 107) { |
if (bg >= 90 && bg <= 97) { |
/* 16 colour terminals or above only. */ |
/* 16 colour terminals or above only. */ |
if (tty_term_number(tty->term, TTYC_COLORS) >= 16) { |
if (tty_term_number(tty->term, TTYC_COLORS) >= 16) { |
xsnprintf(s, sizeof s, "\033[%dm", bg); |
xsnprintf(s, sizeof s, "\033[%dm", bg + 10); |
tty_puts(tty, s); |
tty_puts(tty, s); |
goto save_bg; |
goto save_bg; |
} |
} |
bg -= 100; |
bg -= 90; |
/* no such thing as a bold background */ |
/* no such thing as a bold background */ |
} |
} |
|
|