From: Eric S. Raymond Date: Fri, 28 Jan 2005 22:23:10 +0000 (+0000) Subject: Still more mergedown. X-Git-Tag: 2.0~410 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=2386f7a30ea2471e4387ba9c0d3cce5c9f8c5b38;p=super-star-trek.git Still more mergedown. --- diff --git a/sst.c b/sst.c index acef984..59b0b32 100644 --- a/sst.c +++ b/sst.c @@ -502,14 +502,21 @@ int main(int argc, char **argv) { } } +#ifndef SERGEEV iostart(usecurses); - prelim(); +#else + randomize(); + textattr(7); + clrscr(); + setwnd(0); +#endif /* SERGEEV */ line[0] = '\0'; for (i = optind; i < argc; i++) { strcat(line, argv[i]); strcat(line, " "); } while (TRUE) { /* Play a game */ + prelim(); setup(line[0] == '\0'); if (alldone) { score(); @@ -639,6 +646,13 @@ int scan(void) { return IHEOL; } getline(line, sizeof(line)); +#ifdef SERGEEV + fflush(stdin); + if (curwnd==5){ + clrscr(); + setwnd(4); + clrscr(); +#endif /* SERGEEV */ linep = line; } // Skip leading white space diff --git a/sst.h b/sst.h index 101b2ba..db10aab 100644 --- a/sst.h +++ b/sst.h @@ -436,6 +436,10 @@ void probe(void); void clearscreen(void); void iostart(int); void ioend(void); +#ifdef SERGEEV +#define getline cgetline +void setwnd(short); +#endif /* SERGEEV */ void getline(char *, int); void commandhook(char *, int);