X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=misc.c;h=a08720cbeb20b08cd7414d20eb743343bb3f1d83;hb=2bc887c84efbcd9ea4ae589d29285bc187173e9a;hp=63052ced47351603e80fccdd31da28c47ca90cca;hpb=dc9d9e467b4efe76c30f15ccd23ceede2326f5e8;p=open-adventure.git diff --git a/misc.c b/misc.c index 63052ce..a08720c 100644 --- a/misc.c +++ b/misc.c @@ -2,6 +2,7 @@ #include #include #include "main.h" +#include "share.h" /* for SETUP */ #include "misc.h" #include "funcs.h" @@ -885,7 +886,7 @@ long I, VAL; if(MAP2[1] == 0)MPINIT(); - if (!oldstyle && isatty(0)) + if (!oldstyle && SETUP) fputs("> ", stdout); IGNORE(fgets(INLINE+1,sizeof(INLINE)-1,OPENED)); if (feof(OPENED)) { @@ -894,6 +895,8 @@ long I, VAL; } else { if (logfp) IGNORE(fputs(INLINE+1, logfp)); + else if (!isatty(0)) + IGNORE(fputs(INLINE+1, stdout)); LNLENG=0; for (I=1; I<=sizeof(INLINE) && INLINE[I]!=0; I++) { VAL=INLINE[I]+1;