projects
/
super-star-trek.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7c2d8d1
)
Still more mergedown.
author
Eric S. Raymond
<esr@thyrsus.com>
Fri, 28 Jan 2005 22:23:10 +0000
(22:23 +0000)
committer
Eric S. Raymond
<esr@thyrsus.com>
Fri, 28 Jan 2005 22:23:10 +0000
(22:23 +0000)
sst.c
patch
|
blob
|
history
sst.h
patch
|
blob
|
history
diff --git
a/sst.c
b/sst.c
index acef9841228ecf2f18b4f1b5568683a9b07bb210..59b0b3221f0cd6c442ee90a2a2c9689eb42ea991 100644
(file)
--- a/
sst.c
+++ b/
sst.c
@@
-502,14
+502,21
@@
int main(int argc, char **argv) {
}
}
}
}
+#ifndef SERGEEV
iostart(usecurses);
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 */
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();
setup(line[0] == '\0');
if (alldone) {
score();
@@
-639,6
+646,13
@@
int scan(void) {
return IHEOL;
}
getline(line, sizeof(line));
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
linep = line;
}
// Skip leading white space
diff --git
a/sst.h
b/sst.h
index 101b2ba45599277bb1dec563b0c230f55259f4a2..db10aab53e2444c9cf0010b02cfad2bded70844f 100644
(file)
--- a/
sst.h
+++ b/
sst.h
@@
-436,6
+436,10
@@
void probe(void);
void clearscreen(void);
void iostart(int);
void ioend(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);
void getline(char *, int);
void commandhook(char *, int);