* rewrite of the win32 dedicated console:
1) NET_Sleep() no longer watches for input, Sys_Sleep() added for waiting
on input.
2) Added "CtrlHandler" for trapping Ctrl-C and other quit methods not
handled by signals on windows
3) Added history support
4) Added tab completion
5) Removed automatic cursor/scroll adjustment (too problematic)
6) Enable mousewheel scrolling
7) Stop using the InputBuffer for editing
This seems to work pretty well now, but I jumped the gun on a previous
commit message by saying you can scroll now without locking up your server.
That was only true up until the point that a server tried to print to
the console, at that point it will hang until you release the scroll bar :(
It may be possible to get around this by using a seperate thread for
console output, but that's a whole new can of worms.
This commit is contained in:
parent
2052b94adc
commit
e46fe24426
8 changed files with 321 additions and 217 deletions
|
|
@ -508,3 +508,20 @@ void Sys_FreeFileList( char **list )
|
|||
|
||||
Z_Free( list );
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
==============
|
||||
Sys_Sleep
|
||||
|
||||
Block execution for msec or until input is recieved.
|
||||
==============
|
||||
*/
|
||||
void Sys_Sleep( int msec )
|
||||
{
|
||||
if( msec < 0 )
|
||||
WaitForSingleObject( GetStdHandle( STD_INPUT_HANDLE ), INFINITE );
|
||||
else
|
||||
WaitForSingleObject( GetStdHandle( STD_INPUT_HANDLE ), msec );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue