diff options
author | Tim Angus <tim@ngus.net> | 2009-10-03 11:12:39 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:14:44 +0000 |
commit | 593953c7deabb08cc77c22c08f5c8859bafbcb79 (patch) | |
tree | 8a22c17d66e749656a5665e1379d29ca715e219e /src/sys/con_win32.c | |
parent | 3ffe4805cfebd93a60bf59b582303540b2ec0d80 (diff) |
* Merge ioq3-r1233
Diffstat (limited to 'src/sys/con_win32.c')
-rw-r--r-- | src/sys/con_win32.c | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/src/sys/con_win32.c b/src/sys/con_win32.c index 71549b7d..a27c9cca 100644 --- a/src/sys/con_win32.c +++ b/src/sys/con_win32.c @@ -132,19 +132,10 @@ static void CON_HistNext( void ) /* ================== -CON_Hide -================== -*/ -void CON_Hide( void ) -{ -} - -/* -================== CON_Show ================== */ -void CON_Show( void ) +static void CON_Show( void ) { CONSOLE_SCREEN_BUFFER_INFO binfo; COORD writeSize = { MAX_EDIT_LINE, 1 }; @@ -155,7 +146,7 @@ void CON_Show( void ) GetConsoleScreenBufferInfo( qconsole_hout, &binfo ); - // if we' re in the middle of printf, don't bother writing the buffer + // if we're in the middle of printf, don't bother writing the buffer if( binfo.dwCursorPosition.X != 0 ) return; @@ -249,10 +240,10 @@ void CON_Init( void ) /* ================== -CON_ConsoleInput +CON_Input ================== */ -char *CON_ConsoleInput( void ) +char *CON_Input( void ) { INPUT_RECORD buff[ MAX_EDIT_LINE ]; DWORD count = 0, events = 0; @@ -353,3 +344,15 @@ char *CON_ConsoleInput( void ) return qconsole_line; } + +/* +================== +CON_Print +================== +*/ +void CON_Print( const char *msg ) +{ + fputs( msg, stderr ); + + CON_Show( ); +} |