|
iPXE
|
ANSI colours. More...
Go to the source code of this file.
Data Structures | |
| struct | ansicol_pair |
| An ANSI colour pair definition. More... | |
Macros | |
| #define | COLOUR_DEFAULT 9 |
| Default colour (usually white foreground, black background) More... | |
| #define | COLOR_DEFAULT COLOUR_DEFAULT |
| #define | ANSICOL_MAGIC 15 |
| Magic colour. More... | |
| #define | ANSICOL_NO_RGB 0x01000000 |
| RGB value for "not defined". More... | |
| #define | CPAIR_DEFAULT 0 |
| Default colour pair. More... | |
| #define | CPAIR_NORMAL 1 |
| Normal text. More... | |
| #define | CPAIR_SELECT 2 |
| Highlighted text. More... | |
| #define | CPAIR_SEPARATOR 3 |
| Unselectable text (e.g. More... | |
| #define | CPAIR_EDIT 4 |
| Editable text. More... | |
| #define | CPAIR_ALERT 5 |
| Error text. More... | |
| #define | CPAIR_URL 6 |
| URL text. More... | |
| #define | CPAIR_PXE 7 |
| PXE selected menu entry. More... | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| void | ansicol_set_pair (unsigned int cpair) |
| Set ANSI foreground and background colour. More... | |
| int | ansicol_define_pair (unsigned int cpair, unsigned int foreground, unsigned int background) |
| Define ANSI colour pair. More... | |
| int | ansicol_define (unsigned int colour, unsigned int ansi, uint32_t rgb) |
| Define ANSI colour. More... | |
| void | ansicol_reset_magic (void) |
| Reset magic colour. More... | |
| void | ansicol_set_magic_transparent (void) |
| Set magic colour to transparent. More... | |
| void | ansicol_set (unsigned int colour, unsigned int which) |
| Set ANSI colour (when no colour definition support is present) More... | |
ANSI colours.
Definition in file ansicol.h.
| #define COLOUR_DEFAULT 9 |
| #define COLOR_DEFAULT COLOUR_DEFAULT |
| #define ANSICOL_MAGIC 15 |
| #define ANSICOL_NO_RGB 0x01000000 |
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| void ansicol_set_pair | ( | unsigned int | cpair | ) |
Set ANSI foreground and background colour.
| cpair | Colour pair index |
Definition at line 89 of file ansicol.c.
References ansicol_background(), ansicol_foreground(), ansicol_pairs, assert(), ansicol_pair::background, and ansicol_pair::foreground.
Referenced by ansiscr_attrs(), ansiscr_reset(), colour_exec(), console_exec(), and cpair_exec().
| int ansicol_define_pair | ( | unsigned int | cpair, |
| unsigned int | foreground, | ||
| unsigned int | background | ||
| ) |
Define ANSI colour pair.
| cpair | Colour pair index |
| foreground | Foreground colour index |
| background | Background colour index |
| rc | Return status code |
Definition at line 110 of file ansicol.c.
References ansicol_pairs, ansicol_pair::background, DBGC, EINVAL, and ansicol_pair::foreground.
Referenced by cpair_exec().
| int ansicol_define | ( | unsigned int | colour, |
| unsigned int | basic, | ||
| uint32_t | rgb | ||
| ) |
Define ANSI colour.
| colour | Colour index |
| basic | Basic colour |
| rgb | 24-bit RGB value (or ANSICOL_NO_RGB) |
| rc | Return status code |
Definition at line 125 of file ansicoldef.c.
References ANSICOL_BASIC, ANSICOL_DEFINE, ANSICOL_NO_RGB, ANSICOL_RGB, ansicols, colour, DBGC, and EINVAL.
Referenced by colour_exec().
| void ansicol_reset_magic | ( | void | ) |
Reset magic colour.
Definition at line 179 of file ansicoldef.c.
References ansicol_magic, and COLOR_NORMAL_BG.
Referenced by efifb_configure(), and vesafb_configure().
| void ansicol_set_magic_transparent | ( | void | ) |
Set magic colour to transparent.
Definition at line 189 of file ansicoldef.c.
References ansicol_magic, and COLOR_DEFAULT.
Referenced by efifb_configure(), and vesafb_configure().
| void ansicol_set | ( | unsigned int | colour, |
| unsigned int | which | ||
| ) |
Set ANSI colour (when no colour definition support is present)
| colour | Colour index |
| which | Foreground/background selector |
Set ANSI colour (when no colour definition support is present)
| colour | Colour index |
| which | Foreground/background selector |
Definition at line 57 of file ansicol.c.
References ANSICOL_BASIC, ANSICOL_BLUE, ANSICOL_DEFINE, ANSICOL_GREEN, ansicol_magic, ANSICOL_NO_RGB, ANSICOL_RED, ansicols, assert(), colour, COLOUR_DEFAULT, CSI, and printf().
Referenced by ansicol_background(), and ansicol_foreground().
1.8.15