summaryrefslogtreecommitdiff
path: root/src/main/interactive_shell.cpp
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@cs.nyu.edu>2014-04-04 14:49:17 -0400
committerMorgan Deters <mdeters@cs.nyu.edu>2014-04-04 15:27:16 -0400
commit00d068f91c675edbe63c2f8c1dae283f300dd4cc (patch)
tree32a8233569ffc5f2218c43d1852a7aa7568766c6 /src/main/interactive_shell.cpp
parent9e2e46bf9c81e9a5a46262904a26689cfa67c308 (diff)
Allow turning off the interactive prompt while in interactive mode.
Diffstat (limited to 'src/main/interactive_shell.cpp')
-rw-r--r--src/main/interactive_shell.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/interactive_shell.cpp b/src/main/interactive_shell.cpp
index a8099ca30..63a60c7a2 100644
--- a/src/main/interactive_shell.cpp
+++ b/src/main/interactive_shell.cpp
@@ -32,6 +32,7 @@
#include "parser/parser.h"
#include "parser/parser_builder.h"
#include "options/options.h"
+#include "main/options.h"
#include "util/language.h"
#include "util/output.h"
@@ -183,7 +184,7 @@ restart:
/* Prompt the user for input. */
if(d_usingReadline) {
#if HAVE_LIBREADLINE
- lineBuf = ::readline(d_options[options::verbosity] >= 0 ? (line == "" ? "CVC4> " : "... > ") : "");
+ lineBuf = ::readline(d_options[options::interactivePrompt] ? (line == "" ? "CVC4> " : "... > ") : "");
if(lineBuf != NULL && lineBuf[0] != '\0') {
::add_history(lineBuf);
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback