else { Out( "Black Suspend> " ); }
}
else if ( root_turn ) { Out( "White %d> ", record_game.moves+1 ); }
- else { Out( "Black %d> ", record_game.moves+1 ); }
+#ifdef XBOARD
+# define SIGN "#"
+#else
+# define SIGN
+#endif
+ else { Out( SIGN "Black %d> ", record_game.moves+1 ); }
}
int
stdout_normal( void )
{
-# if defined(_WIN32)
+# if defined(_MSC_VER)
HANDLE hStdout;
WORD wAttributes;
int
stdout_stress( int is_promote, int ifrom )
{
-# if defined(_WIN32)
+# if defined(_MSC_VER)
HANDLE hStdout;
WORD wAttributes;
&dwTotalBytesAvail, &dwBytesLeftThisMessage );
if ( ! bSuccess )
{
+ if( GetLastError() == 6)
+ {
+ return _kbhit();
+ }
+ Out("peek error %d\n", GetLastError());
str_error = "PeekNamedPipe() faild.";
return -1;
}