From 2386f7a30ea2471e4387ba9c0d3cce5c9f8c5b38 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 28 Jan 2005 22:23:10 +0000 Subject: [PATCH] Still more mergedown. --- sst.c | 16 +++++++++++++++- sst.h | 4 ++++ 2 files changed, 19 insertions(+), 1 deletion(-) 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); -- 2.31.1