#include <sys/types.h>
#include <sys/file.h>
-#include <curses.h>
#include "gnushogi.h"
char mvstr[4][6];
Sdepth = 0;
#ifdef QUIETBACKGROUND
- if (NOT_CURSES)
- {
- PromptForMove();
- }
- else
- {
- ShowSidetoMove();
- ShowPrompt();
- }
-
+ ShowPrompt();
have_shown_prompt = true;
#endif /* QUIETBACKGROUND */
{
#endif /* QUIETBACKGROUND */
- if (NOT_CURSES)
- {
- PromptForMove();
- }
- else
- {
- ShowSidetoMove();
- ShowPrompt();
- }
+ ShowPrompt();
#ifdef QUIETBACKGROUND
}
have_shown_prompt = false;
#endif /* QUIETBACKGROUND */
- if (command == NULL)
- {
+ if (command == NULL) {
if (NOT_CURSES)
- {
- s[0] = sx[0] = '\0';
+ s[0] = '\0';
- while(!eof && !sx[0])
- eof = (fgets(sx, 80, stdin) == NULL);
- }
- else
- {
- fflush(stdout);
- eof = (getstr(sx) == ERR);
- }
- }
- else
- {
+ eof = GetString(sx);
+ } else {
strcpy(sx, command);
done = true;
}
{
EditBoard();
}
- else if (NOT_CURSES && (strcmp(s, CP[190]) == 0)) /* setup */
+ else if ((strcmp(s, CP[190]) == 0)) /* setup */
{
SetupBoard();
}