Author: Peter Fendrich
Date: 06:46:13 04/13/04
Go up one level in this thread
Hello Fabien, Done but not tested with real GUI's! I hope it works for all kinds of GUI's. Arena, Winboard, Chessmaster, WB2EPD, Fritz, Scid etc etc... Anyway, thanks for the information. /Peter On April 13, 2004 at 07:08:19, Fabien Letouzey wrote: > >Hello, > >I have a request for all engine authors. Please let the engine quit >when end-of-file is read on input. This applies to xboard, UCI and >even console engines. > >I know the engine is supposed to receive "quit" first in both xboard >and UCI, but the interface (whether graphical or not) might crash or >get killed or whatever. If end-of-file is received, how are you going >to get new commands??? > >I guess most engines use fgets() to read input, just test the return >value for NULL. Technically is could be an error or end-of-file then, >you can use ferror() and feof() if you wish to distinguish. If you >use read() or the like then 0 means EOF was reached. > >For testing: On Unices EOF can be sent in a console by pressing >ctrl-D. I think ctrl-Z does the same thing in a Windows console. > >If only one author decides to make the change this post will have been >useful! This will make life easier for interface developpers and many >many users!!! > >Thanks in advance, > >Fabien.
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.