Author: Chris Moreton
Date: 17:10:59 01/01/99
Go up one level in this thread
On January 01, 1999 at 20:01:01, Chris Moreton wrote: I forgot to mention the code that you will most likely be interested in and that is the code to monitor stdin while searching or pondering. I run the following code every 500 milliseconds or so (judged on an incremental counter). DWORD dw;\ static HANDLE inh = GetStdHandle(STD_INPUT_HANDLE);\ GetConsoleMode(inh, &dw);\ PeekNamedPipe(inh, NULL, 0, NULL, &dw, NULL);\ if (dw!=NULL && dw>0) ExitWithMove(); \ Chris
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.