Skip to content

Commit 9b30143

Browse files
committed
provide defines for base console colors
1 parent 8ef541c commit 9b30143

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

gc/ogc/console.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@
2424
#define CONSOLE_CYAN CONSOLE_ESC(36;1m)
2525
#define CONSOLE_WHITE CONSOLE_ESC(37;1m)
2626

27+
#define CONSOLE_COLOR_BLACK 0
28+
#define CONSOLE_COLOR_RED 1
29+
#define CONSOLE_COLOR_GREEN 2
30+
#define CONSOLE_COLOR_YELLOW 3
31+
#define CONSOLE_COLOR_BLUE 4
32+
#define CONSOLE_COLOR_MAGENTA 5
33+
#define CONSOLE_COLOR_CYAN 6
34+
#define CONSOLE_COLOR_WHITE 7
35+
2736
#ifdef __cplusplus
2837
extern "C" {
2938
#endif

libogc/console.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,8 @@ static void __set_default_console(void *destbuffer,int xstart,int ystart, int tg
358358

359359
con->font = console_font_8x16;
360360

361-
con->fg = 7;
362-
con->bg = 0;
361+
con->fg = CONSOLE_COLOR_WHITE;
362+
con->bg = CONSOLE_COLOR_BLACK;
363363

364364
con->flags = 0;
365365
con->tabSize = 4;

0 commit comments

Comments
 (0)