Function
nuDebConTextColor
Syntax
void nuDebConTextColor(u32 wndNo, u32 color)
Arguments
wndNo window number
NU_DEB_CON_WINDOW0 Window 0
NU_DEB_CON_WINDOW1 Window 1
NU_DEB_CON_WINDOW2 Window 2
NU_DEB_CON_WINDOW3 Window 3
color text color (0-15)
Return Value
None
Description
Changes the color of text displayed in the console window
Changes the color of text displayed in the console window. The settings affect the color of text output after the function is called. The text color can be specified with any value from 0 to 15. The definition for each color value is shown below.
Value | Macro | Color |
0 | NU_DEB_CON_TEXT_BLACK | Black |
1 | NU_DEB_CON_TEXT_BLUE | Blue |
2 | NU_DEB_CON_TEXT_GREEN | Green |
3 | NU_DEB_CON_TEXT_CYAN | Cyan |
4 | NU_DEB_CON_TEXT_RED | Red |
5 | NU_DEB_CON_TEXT_MAGENTA | Magenta |
6 | NU_DEB_CON_TEXT_YELLOW | Yellow |
7 | NU_DEB_CON_TEXT_WHITE | White |
8 | NU_DEB_CON_TEXT_LIGHTBLACK | Gray |
9 | NU_DEB_CON_TEXT_LIGHTBLUE | Light Blue |
10 | NU_DEB_CON_TEXT_LIGHTGREEN | Light Green |
11 | NU_DEB_CON_TEXT_LIGHTCYAN | Light Cyan |
12 | NU_DEB_CON_TEXT_LIGHTRED | Light Red |
13 | NU_DEB_CON_TEXT_LIGHTMAGENTA | Light Magenta |
14 | NU_DEB_CON_TEXT_LIGHTYELLOW | Light Yellow |
15 | NU_DEB_CON_TEXT_LIGHTWHITE | White |
The larger the window number, the higher the priority. The windows are stacked with the highest priority window displayed on top.
This function can also be used with the release-use library.
See Also
nuGfxInit, nuGfxTaskStart, nuGfxSetUcode, nuDebConDisp, nuDebConWindowSize, nuDebConWindowPos, nuDebConWindowShow, nuDebConScroll, nuDebConTextAttr, and nuDebConClear