}
void clrscr (void)
+/* clear screen -- can be a no-op in tty mode */
{
+#ifdef SERGEEV
wclear(conio_scr);
wmove(conio_scr,0,0);
wrefresh(conio_scr);
+#endif /* SERGEEV */
}
int cprintf (char *format, ... )
va_start(argp,format);
vsprintf(buffer,format,argp);
va_end(argp);
+
+#ifdef SERGEEV
i=waddstr(conio_scr,buffer);
wrefresh(conio_scr);
+#else
+ i=printf(buffer);
+#endif /* SERGEEV */
return(i);
}
key = scan();
while (TRUE) {
if (key == IHEOL) {
-#ifdef SERGEEV
setwnd(BOTTOM_WINDOW);
-#endif /* SERGEEV */
proutn("Help on what command? ");
key = scan();
}
-#ifdef SERGEEV
setwnd(LOWER_WINDOW);
-#endif /* SERGEEV */
if (key == IHEOL) return;
for (i = 0; i < NUMCOMMANDS; i++) {
if (strcasecmp(commands[i].name, citem)==0) {
static void makemoves(void) {
int i, hitme;
-#ifdef SERGEEV
clrscr();
setwnd(LOWER_WINDOW);
-#endif /* SERGEEV */
while (TRUE) { /* command loop */
drawmaps(1);
while (TRUE) { /* get a command */
Time = 0.0;
i = -1;
chew();
-#ifdef SERGEEV
setwnd(BOTTOM_WINDOW);
clrscr();
-#endif /* SERGEEV */
proutn("COMMAND> ");
if (scan() == IHEOL) {
#ifdef SERGEEV
#endif /* SERGEEV */
continue;
}
-#ifdef SERGEEV
ididit=0;
clrscr();
setwnd(LOWER_WINDOW);
clrscr();
-#endif /* SERGEEV */
for (i=0; i < ABANDON; i++)
if (isit(commands[i].name)) {
i = commands[i].value;
break;
case SAVE: // Save Game
freeze(FALSE);
-#ifdef SERGEEV
clrscr();
-#endif /* SERGEEV */
if (skill > 3)
prout("WARNING--Saved games produce no plaques!");
break;
}
proutn("Do you want to play again? ");
if (!ja()) break;
-#ifdef SERGEEV
setwnd(FULLSCREEN_WINDOW);
clrscr();
-#endif /* SERGEEV */
}
skip(1);
#ifndef SERGEEV