diff options
author | Michael Brown <mcb30@ipxe.org> | 2013-12-09 15:30:59 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2013-12-09 15:34:14 +0000 |
commit | f6dce77b15e34e105b48116bde5f405537898aaf (patch) | |
tree | eaff003dd77af6b4f1ef055c749555c8140a4aed /src/include/ipxe/ansicol.h | |
parent | e8b5b504860967ed9a594bafe7cbc844117b92b3 (diff) | |
download | ipxe-f6dce77b15e34e105b48116bde5f405537898aaf.tar.gz |
[console] Add concept of a "magic" colour
The magic basic colour can be remapped at runtime from COLOR_NORMAL_BG
(usually blue) to COLOR_DEFAULT (which will be transparent as a
background colour on the framebuffer console).
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/ansicol.h')
-rw-r--r-- | src/include/ipxe/ansicol.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/ipxe/ansicol.h b/src/include/ipxe/ansicol.h index 2fa084626..707d1599d 100644 --- a/src/include/ipxe/ansicol.h +++ b/src/include/ipxe/ansicol.h @@ -16,6 +16,15 @@ FILE_LICENCE ( GPL2_OR_LATER ); #define COLOUR_DEFAULT 9 #define COLOR_DEFAULT COLOUR_DEFAULT +/** Magic colour + * + * The magic basic colour is automatically remapped to the colour + * stored in @c ansicol_magic. This is used to allow the UI + * background to automatically become transparent when a background + * picture is used. + */ +#define ANSICOL_MAGIC 15 + /** RGB value for "not defined" */ #define ANSICOL_NO_RGB 0x01000000 @@ -66,6 +75,8 @@ extern int ansicol_define_pair ( unsigned int cpair, unsigned int foreground, /* ansicoldef.c */ extern int ansicol_define ( unsigned int colour, unsigned int ansi, uint32_t rgb ); +extern void ansicol_reset_magic ( void ); +extern void ansicol_set_magic_transparent ( void ); /* Function provided by ansicol.c but overridden by ansicoldef.c, if present */ extern void ansicol_set ( unsigned int colour, unsigned int which ); |