Page 1 of 1

Problem with interface

PostPosted: 14 Apr 2008, 21:55
by Fermin Serrano
I am experiencing problems with the winboard interface. When I send comands or moves to winboard, it runs ok, but when I send the principal variantion with its score and depth, no info is showed. The debug is shown a empty line and I am sure it is sended (I write it to a file just after sending to winboard with printf, and also it runs ok in Arena).

I have the unbuffered options sets:

Code: Select all
   setbuf(stdout, NULL);
   setbuf(stdin , NULL);
   setvbuf(stdout, NULL, _IONBF, 0);
   setvbuf(stdin, NULL, _IONBF, 0);


No idea of whats the problems, but I have search in the forum and it looks like some programmers had the same problem, but no solution.

Does anyone has the same problem? any ideas?
thx
FS

Re: Problem with interface

PostPosted: 14 Apr 2008, 22:17
by H.G.Muller
If it is not in the winboard.debug file, you can be sure it is not sent. Are you sure you were playing with the 'Show Thinking' option turned on?

Re: Problem with interface

PostPosted: 15 Apr 2008, 07:55
by Fermin Serrano
I found the problem. I was sending a '\r' character which seems to deceive winboard.
Anyway, winboard would have to log both lines (the \r and pv print) , isn't it?