diff options
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/con_win32.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/sys/con_win32.c b/src/sys/con_win32.c index 51b9e373..37621210 100644 --- a/src/sys/con_win32.c +++ b/src/sys/con_win32.c @@ -224,11 +224,31 @@ static void CON_Show( void ) /* ================== +CON_Hide +================== +*/ +static void CON_Hide( void ) +{ + int realLen; + + realLen = qconsole_linelen; + + // remove input line from console output buffer + qconsole_linelen = 0; + CON_Show( ); + + qconsole_linelen = realLen; +} + + +/* +================== CON_Shutdown ================== */ void CON_Shutdown( void ) { + CON_Hide( ); SetConsoleMode( qconsole_hin, qconsole_orig_mode ); SetConsoleCursorInfo( qconsole_hout, &qconsole_orig_cursorinfo ); SetConsoleTextAttribute( qconsole_hout, qconsole_attrib ); @@ -459,6 +479,8 @@ CON_Print */ void CON_Print( const char *msg ) { + CON_Hide( ); + CON_WindowsColorPrint( msg ); CON_Show( ); |