- text console cleanups

- don't draw character 1 or 2 in text mode, it's used by
    graphical console to change colours
  - don't print anything if a null string is passed
  - don't draw the names of the models being loaded, and
    don't try to overwrite it with whitespace, unless you're
    in developer mode.
This commit is contained in:
Jamie Wilkinson 2004-03-08 12:48:03 +00:00
parent a5b442aca6
commit 1d554ce1f3
2 changed files with 10 additions and 2 deletions

View File

@ -287,7 +287,7 @@ void CL_PrepRefresh (void)
strcpy (name, cl.configstrings[CS_MODELS+i]);
name[37] = 0; // never go beyond one line
if (name[0] != '*')
Com_Printf ("%s\r", name);
Com_DPrintf ("%s\r", name);
SCR_UpdateScreen ();
Sys_SendKeyEvents (); // pump message loop
if (name[0] == '#')
@ -309,7 +309,7 @@ void CL_PrepRefresh (void)
cl.model_clip[i] = NULL;
}
if (name[0] != '*')
Com_Printf (" \r");
Com_DPrintf (" \r");
}
Com_Printf ("images\r");

View File

@ -112,6 +112,14 @@ void Sys_ConsoleOutput (char *string)
if (nostdout && nostdout->value)
return;
if (!string)
return;
if (string[0] == 1 || string[0] == 2) {
/* coloured text on the graphical console, ignore it */
string++;
}
fputs(string, stdout);
}