78 #define MAKE_COLOR(foreground, background) (((foreground) & 15) | (background) << 4) 83 #define MAKE_RAW_CHAR(color, chr) ((((uint32_t)(chr)) & 0xFF) | (((uint32_t)(color)) & 0xFF) << 8) 90 #define RAW_CHAR_COLOR(raw) (((raw) >> 8) & 0xFF) 95 #define RAW_CHAR_CHR(raw) ((raw) & 0xFF) 100 #define BG_COLOR(color) ((color >> 4) & 15) 105 #define FG_COLOR(color) (color & 15) 110 #define CONSOLE_WIDTH(size) (size & 0xFFFF) 115 #define CONSOLE_HEIGHT(size) ((size >> 16) & 0xFFFF) 120 #define CONSOLE_POSX(pos) (pos & 0xFFFF) 125 #define CONSOLE_POSY(pos) ((pos >> 16) & 0xFFFF) void consoleScrollUp()
Scroll the console up one line.
void consoleWriteStringMax(const char *str, size_t len)
Write a nullterminated string or a maximum of len characters.
uint32_t consoleGetCursorPosY()
Get Y position of the text cursor.
void consoleWriteRawLen(const uint16_t *data, size_t count)
Write raw data with a fixed size to the console.
uint32_t consoleGetSize()
Returns the packed size of the console.
uint8_t consoleGetColorForeground()
Get current foreground color.
void consoleShowHardwareCursor(bool changed)
Show / hide blinking hardware cursor.
void consoleWriteInt32(uint32_t value)
Write a 32 bit integer as decimal value on the console.
uint32_t consoleGetHardwareCursor()
Get packed position of the hardware cursor.
void consoleSetFont()
Load a custom font supporting latin1 characters.
uint8_t consoleGetWidth()
Returns the width (text cols) of the console.
void consoleInit()
Initializes the console.
uint32_t consoleGetCursorPosX()
Get X position of the text cursor.
void consoleSetColor(uint8_t color)
Set the text and background color of the console.
uint8_t consoleGetHeight()
Returns the height (text rows) of the console.
uint8_t consoleGetColorBackground()
Get current background color.
void consolePutCharRaw(uint16_t chr)
Write a raw character and color on the console.
void consoleWriteHex32(uint32_t value)
Write a 32 bit integer as hex value on the console.
void consoleClear()
Clear the screen contents.
uint8_t consoleGetColor()
Get current color.
void consoleSetHardwareCursor(uint8_t x, uint8_t y)
Set the position of the hardware cursor.
void consoleSystemFailure(const char **lines, uint32_t numArgs, uint32_t *args, struct taskContext *context)
Print a system failure message and halts the system.
void consoleWriteHex16(uint16_t value)
Write a 16 bit integer as hex value on the console.
void consoleWriteString(const char *str)
Write a C string to the console.
uint32_t consoleGetCursorPos()
Get packed position of the text cursor.
void consoleWriteStringLen(const char *str, size_t len)
Write a string with a fixed size to the console.
bool consoleSetCursorPos(uint8_t x, uint8_t y)
Set the position of the text cursor.
void consoleSetFlags(uint32_t newFlags)
Set console flags.
void consoleEchoChar(char chr)
Echo keyboard input on the console.
void consolePutChar(char chr)
Write a character on the console.
uint32_t consoleGetFlags()
Get console flags.