mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Make the console line-bufered. woot.
This commit is contained in:
parent
0c63c11b4b
commit
4cd037f025
2 changed files with 7 additions and 2 deletions
|
@ -33,6 +33,7 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "QF/console.h"
|
||||
#include "QF/cvar.h"
|
||||
|
@ -44,9 +45,10 @@ void
|
|||
Con_Init (const char *plugin_name)
|
||||
{
|
||||
con_module = PI_LoadPlugin ("console", plugin_name);
|
||||
if (con_module) {
|
||||
if (con_module)
|
||||
con_module->functions->general->p_Init ();
|
||||
}
|
||||
else
|
||||
setvbuf (stdout, 0, _IOLBF, BUFSIZ);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -141,6 +141,9 @@ Con_Init (const char *plugin_name)
|
|||
wrefresh (output);
|
||||
wrefresh (status);
|
||||
wrefresh (input);
|
||||
#else
|
||||
if (setvbuf (stdout, 0, _IONBF, BUFSIZ))
|
||||
Con_Printf ("warning: couldn't set stdout to linebuffered.\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue