projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63e971f
)
Unbreak the tests.
author
Eric S. Raymond
<esr@thyrsus.com>
Sat, 10 Jun 2017 09:35:35 +0000
(
05:35
-0400)
committer
Eric S. Raymond
<esr@thyrsus.com>
Sat, 10 Jun 2017 09:35:35 +0000
(
05:35
-0400)
linenoise doesn't eco its prompt to stdout, which messed them up.
misc.c
patch
|
blob
|
history
diff --git
a/misc.c
b/misc.c
index 0eae1623a25bc4c95539df1825435ff628087f5d..08fdcfaf6f1b1a3a89e41c8c5793096cda5c442f 100644
(file)
--- a/
misc.c
+++ b/
misc.c
@@
-730,6
+730,8
@@
bool MAPLIN(FILE *fp)
* and is not changed thereafter unless the routines on this page choose
* to do so. */
+ if (!oldstyle && !isatty(1))
+ fputs("> ", stdout);
do {
if (oldstyle) {
IGNORE(fgets(rawbuf,sizeof(rawbuf)-1,fp));