[syslinux] syslinux ansi <-> vesa color mapping

Matt Fleming matt at console-pimps.org
Wed Nov 20 05:50:00 PST 2013


On Tue, 12 Nov, at 12:17:47AM, James Buren wrote:
> diff --git a/com32/lib/sys/ansi.h b/com32/lib/sys/ansi.h
> index 7ccafc8..2da8d5f 100644
> --- a/com32/lib/sys/ansi.h
> +++ b/com32/lib/sys/ansi.h
> @@ -7,6 +7,7 @@
>  
>  #include <inttypes.h>
>  #include <stdbool.h>
> +#include "vesa/video.h" // For attr_t type. Required to match VESA color index size.
>  
>  #define ANSI_MAX_PARMS	16
>  
> @@ -29,7 +30,7 @@ struct term_state {
>      bool pvt;			/* Private code? */
>      struct curxy xy;
>      struct curxy saved_xy;
> -    uint8_t cindex;		/* SOH color index */
> +    attr_t cindex;		/* SOH color index */
>      uint8_t fg;
>      uint8_t bg;
>      uint8_t intensity;
 
Seems fairly straight forward.

Thanks, applied.

-- 
Matt Fleming, Intel Open Source Technology Center


More information about the Syslinux mailing list