** Main driver for CVC4 executable.
**/
-#include <iostream>
-#include <fstream>
#include <cstdlib>
#include <cstring>
+#include <fstream>
+#include <iostream>
#include <new>
+#include <stdio.h>
+#include <unistd.h>
+
#include "cvc4autoconfig.h"
#include "main.h"
#include "interactive_shell.h"
// different from the expected behavior of file input from
// stdin, due to EOL escapes in interactive mode
- // if(!options.interactiveSetByUser) {
- // options.interactive = inputFromStdin;
- // }
+ if(!options.interactiveSetByUser) {
+ options.interactive = inputFromStdin && isatty(fileno(stdin));
+ }
// Create the expression manager
ExprManager exprMgr(options.earlyTypeChecking);