projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Improvements to the testing machinery, including the replay option.
[super-star-trek.git]
/
src
/
io.c
diff --git
a/src/io.c
b/src/io.c
index 5d4ea9a13154752c0ed904fc55f3116ee41fb936..dc4ce744fee5cf1350af13c2c991a2096ba46441 100644
(file)
--- a/
src/io.c
+++ b/
src/io.c
@@
-203,7
+203,10
@@
void cgetline(char *line, int max)
strcat(line, "\n");
wrefresh(curwnd);
} else {
- fgets(line, max, stdin);
+ if (replayfp && !feof(replayfp))
+ fgets(line, max, replayfp);
+ else
+ fgets(line, max, stdin);
}
if (logfp)
fputs(line, logfp);