version 1.432, 2023/07/13 06:03:48 |
version 1.433, 2023/09/02 09:17:23 |
|
|
gc->us = c; |
gc->us = c; |
} |
} |
|
|
/* Underscore colour is set as RGB so convert. */ |
/* Convert underscore colour if only RGB can be supported. */ |
if ((c = colour_force_rgb (gc->us)) == -1) |
if (!tty_term_has(tty->term, TTYC_SETULC1)) { |
gc->us = 8; |
if ((c = colour_force_rgb (gc->us)) == -1) |
else |
gc->us = 8; |
gc->us = c; |
else |
|
gc->us = c; |
|
} |
} |
} |
|
|
static void |
static void |
|
|
goto save; |
goto save; |
} |
} |
|
|
/* Must be an RGB colour - this should never happen. */ |
/* |
if (~gc->us & COLOUR_FLAG_RGB) |
* If this is not an RGB colour, use Setulc1 if it exists, otherwise |
|
* convert. |
|
*/ |
|
if (~gc->us & COLOUR_FLAG_RGB) { |
|
c = gc->us; |
|
if ((~c & COLOUR_FLAG_256) && (c >= 90 && c <= 97)) |
|
c -= 82; |
|
tty_putcode_i(tty, TTYC_SETULC1, c & ~COLOUR_FLAG_256); |
return; |
return; |
|
} |
|
|
/* |
/* |
* Setulc and setal follows the ncurses(3) one argument "direct colour" |
* Setulc and setal follows the ncurses(3) one argument "direct colour" |