/* ================== CON_Print ================== */ void CON_Print(const char *msg) { if(com_ansiColor && com_ansiColor->integer) Sys_AnsiColorPrint(msg); else fputs(msg, stderr); }
/* ================== CON_Print ================== */ void CON_Print(const char *msg) { if (!msg[0]) return; CON_Hide(); if(com_ansiColor && com_ansiColor->integer) Sys_AnsiColorPrint(msg); else fputs(msg, stderr); if (!ttycon_on) { // CON_Hide didn't do anything. return; } // Only print prompt when msg ends with a newline, otherwise the console // might get garbled when output does not fit on one line. if (msg[strlen(msg) - 1] == '\n') { CON_Show(); // Run CON_Show the number of times it was deferred. while (ttycon_show_overdue > 0) { CON_Show(); ttycon_show_overdue--; } } else { // Defer calling CON_Show ttycon_show_overdue++; } }
/* ================== CON_Print ================== */ void CON_Print( const char *msg ) { CON_Hide( ); if( ttycon_on && com_ansiColor && com_ansiColor->integer ) Sys_AnsiColorPrint( msg ); else fputs( msg, stderr ); CON_Show( ); }
void Sys_ConsoleOutput( char *string ) { if( nostdout && nostdout->integer ) return; if( nostdout_backup_val ) return; #if 0 fputs( string, stdout ); #else Sys_AnsiColorPrint( string ); #endif }
/* ================== CON_Print ================== */ void CON_Print( const char *msg ) { CON_Hide( ); __android_log_print(ANDROID_LOG_DEBUG, "Quake_DEBUG", "%s", msg); #if 0 if( com_ansiColor && com_ansiColor->integer ) Sys_AnsiColorPrint( msg ); else fputs( msg, stderr ); #endif CON_Show( ); }
/* ================== CON_Print_TTY ================== */ void CON_Print_TTY( const char *msg ) { CON_Hide(); if ( com_ansiColor && com_ansiColor->integer ) { Sys_AnsiColorPrint( msg ); } else { fputs( msg, stderr ); } CON_Show(); }