Unbreak the tests.
linenoise doesn't eco its prompt to stdout, which messed them up.
This commit is contained in:
parent
63e971fc4c
commit
4c5474121f
1 changed files with 2 additions and 0 deletions
2
misc.c
2
misc.c
|
@ -730,6 +730,8 @@ bool MAPLIN(FILE *fp)
|
||||||
* and is not changed thereafter unless the routines on this page choose
|
* and is not changed thereafter unless the routines on this page choose
|
||||||
* to do so. */
|
* to do so. */
|
||||||
|
|
||||||
|
if (!oldstyle && !isatty(1))
|
||||||
|
fputs("> ", stdout);
|
||||||
do {
|
do {
|
||||||
if (oldstyle) {
|
if (oldstyle) {
|
||||||
IGNORE(fgets(rawbuf,sizeof(rawbuf)-1,fp));
|
IGNORE(fgets(rawbuf,sizeof(rawbuf)-1,fp));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue