Initial commit
This commit is contained in:
16
source/console.c
Normal file
16
source/console.c
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
#include "console.h"
|
||||
|
||||
void console_logColor( char * message, char * color ) {
|
||||
|
||||
if( strcmp( color, "green" ) == 0 ) {
|
||||
|
||||
printf( ANSI_COLOR_GREEN "%s" ANSI_COLOR_RESET, message );
|
||||
|
||||
} else if( strcmp( color, "yellow" ) == 0 ) {
|
||||
|
||||
printf( ANSI_COLOR_BRIGHT_YELLOW "%s" ANSI_COLOR_RESET, message );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user