X-Git-Url: http://winboard.nl/cgi-bin?p=gnushogi.git;a=blobdiff_plain;f=gnushogi%2Fcommondsp.c;h=9556f63905d109f446e2dd82c8511e7711b08bf8;hp=4718fd9c5547298036266da4fcb3c6a16f21e35f;hb=dec345dc3b77affb98207d7387093dbdee39c08b;hpb=9a433d9afb150b328443a5854ad4d2105dba6289 diff --git a/gnushogi/commondsp.c b/gnushogi/commondsp.c index 4718fd9..9556f63 100644 --- a/gnushogi/commondsp.c +++ b/gnushogi/commondsp.c @@ -1575,6 +1575,10 @@ InputCommand(char *command) { player = opponent; + if (flag.analyze) { + SelectMove(opponent, BACKGROUND_MODE); + } + #ifdef QUIETBACKGROUND if (!have_shown_prompt) { @@ -1636,7 +1640,7 @@ InputCommand(char *command) /* noop */ ; } else if ((strcmp(s, "quit") == 0) || - (strcmp(s, "exit") == 0)) + (strcmp(s, "exit") == 0) && !xboard) { flag.quit = true; } @@ -1665,6 +1669,19 @@ InputCommand(char *command) ); printf("debug=1 setboard=0 sigint=0 done=1\n"); } + else if (strcmp(s, ".") == 0) + { // ignore for now + } + else if (strcmp(s, "exit") == 0) + { + flag.analyze = false; + flag.force = true; + } + else if (strcmp(s, "analyze") == 0) + { + flag.analyze = true; + flag.force = true; + } else if ((strcmp(s, "set") == 0) || (strcmp(s, "edit") == 0)) {