Added oldstyle option.
[open-adventure.git] / misc.c
diff --git a/misc.c b/misc.c
index b86c5c5f928b45225694fb3503967c3d21f72ea0..b1f3f8367ad66f427dc1884bdcbb531a89f9b0b7 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -1,3 +1,4 @@
+#include <unistd.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include "main.h"
@@ -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)