Lines Matching refs:colour

733 	/* Set cursor colour if changed. */
1279 * background colour isn't default (because it doesn't work
2717 * If any bits are being cleared or the underline colour is now default,
2787 * Is either the default colour? This is handled specially because the
2790 * colour.
2798 * Otherwise, try to set the default colour only as needed.
2821 /* Set the foreground colour. */
2826 * Set the background colour. This must come after the foreground as
2832 /* Set the underscore colour. */
2848 * the palette by changing to the aixterm colour
2860 /* Is this a 24-bit colour? */
2862 /* Not a 24-bit terminal? Translate to 256-colour palette. */
2875 /* Is this a 256-colour colour? */
2877 /* And not a 256 colour mode? */
2889 /* Is this an aixterm colour? */
2910 /* Is this a 24-bit colour? */
2912 /* Not a 24-bit terminal? Translate to 256-colour palette. */
2925 /* Is this a 256-colour colour? */
2928 * And not a 256 colour mode? Translate to 16-colour
2943 /* Is this an aixterm colour? */
2960 /* Convert underscore colour if only RGB can be supported. */
2975 /* Is this a 24-bit or 256-colour colour? */
2983 /* Is this an aixterm bright colour? */
2993 /* Otherwise set the foreground colour. */
3007 /* Is this a 24-bit or 256-colour colour? */
3015 /* Is this an aixterm bright colour? */
3025 /* Otherwise set the background colour. */
3040 /* Clear underline colour. */
3047 * If this is not an RGB colour, use Setulc1 if it exists, otherwise
3059 * Setulc and setal follows the ncurses(3) one argument "direct colour"
3060 * capability format. Calculate the colour value.
3066 * Write the colour. Only use setal if the RGB flag is set because the
3081 tty_try_colour(struct tty *tty, int colour, const char *type)
3085 if (colour & COLOUR_FLAG_256) {
3087 tty_putcode_i(tty, TTYC_SETAF, colour & 0xff);
3089 tty_putcode_i(tty, TTYC_SETAB, colour & 0xff);
3093 if (colour & COLOUR_FLAG_RGB) {
3094 colour_split_rgb(colour & 0xffffff, &r, &g, &b);