static void ConsolePrintchar(unsigned char ch) { int i; if(print_col >= CONSOLE_WIDTH) { print_col = 0; ConsoleNewline(); } switch(ch) { case 9: //'\t' if((print_col + TAB_SIZE) < CONSOLE_WIDTH) { i = print_col % TAB_SIZE; i = TAB_SIZE - i; while(i--) { console_buf_end[print_col] = ' '; print_col += 1; } } break; case 10: //'\n' case 13: //'\r' console_buf_end[print_col] = '\n'; print_col = 0; ConsoleNewline(); break; default: console_buf_end[print_col] = ch; if(ch != '\0') print_col += 1; break; } }
VOID ExportConsoleDialog::LogError( const CHAR* strMessage ) { ConsolePrint( RGB(255, 0, 0), strMessage ); ConsoleNewline(); }
VOID ExportConsoleDialog::LogWarning( const CHAR* strMessage ) { ConsolePrint( RGB(255, 128, 0), strMessage ); ConsoleNewline(); }