X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=misc.c;h=b1f3f8367ad66f427dc1884bdcbb531a89f9b0b7;hb=609b308ed11257e8fb7ff55f683cad1e6d660616;hp=fafc15c5255d382a8397ff04e72d9b31a52a5d19;hpb=943b3a62e680e733ffe57552657d22ce148fed5f;p=open-adventure.git diff --git a/misc.c b/misc.c index fafc15c..b1f3f83 100644 --- a/misc.c +++ b/misc.c @@ -1,3 +1,4 @@ +#include #include #include #include "main.h" @@ -174,7 +175,7 @@ void fSETPRM(long FIRST, long P1, long P2) { void fGETIN(long *wORD1, long *wORD1X, long *wORD2, long *wORD2X) { long JUNK; -/* Get a command from the adventurer. snarf out the first word, pad it with +/* Get a command from the adventurer. Snarf out the first word, pad it with * blanks, and return it in WORD1. Chars 6 thru 10 are returned in WORD1X, in * case we need to print out the whole word in an error message. Any number of * blanks may follow the word. If a second word appears, it is returned in @@ -884,6 +885,8 @@ long I, VAL; if(MAP2[1] == 0)MPINIT(); + if (!oldstyle && isatty(0)) + fputs("> ", stdout); IGNORE(fgets(INLINE+1,sizeof(INLINE)-1,OPENED)); if (feof(OPENED)) { if (logfp)