summaryrefslogtreecommitdiff
path: root/src/main/interactive_shell.cpp
diff options
context:
space:
mode:
authorKshitij Bansal <kshitij@cs.nyu.edu>2014-04-06 06:25:08 -0400
committerKshitij Bansal <kshitij@cs.nyu.edu>2014-04-06 06:56:54 -0400
commitab83b7f8d4cc25580cf140d753e0bfe3c76cb36c (patch)
tree471742f4e54178327c9c3413c70927f288dae300 /src/main/interactive_shell.cpp
parent1364389f19e55984cc52589b3af42322c300e00f (diff)
fix for hiding prompt/header in shell, error-behavior options as in SMTLIB
Diffstat (limited to 'src/main/interactive_shell.cpp')
-rw-r--r--src/main/interactive_shell.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/interactive_shell.cpp b/src/main/interactive_shell.cpp
index 63a60c7a2..90229861f 100644
--- a/src/main/interactive_shell.cpp
+++ b/src/main/interactive_shell.cpp
@@ -192,7 +192,7 @@ restart:
free(lineBuf);
#endif /* HAVE_LIBREADLINE */
} else {
- if(d_options[options::verbosity] >= 0) {
+ if(d_options[options::interactivePrompt]) {
if(line == "") {
d_out << "CVC4> " << flush;
} else {
@@ -260,7 +260,7 @@ restart:
input[n] = '\n';
if(d_usingReadline) {
#if HAVE_LIBREADLINE
- lineBuf = ::readline(d_options[options::verbosity] >= 0 ? "... > " : "");
+ lineBuf = ::readline(d_options[options::interactivePrompt] ? "... > " : "");
if(lineBuf != NULL && lineBuf[0] != '\0') {
::add_history(lineBuf);
}
@@ -268,7 +268,7 @@ restart:
free(lineBuf);
#endif /* HAVE_LIBREADLINE */
} else {
- if(d_options[options::verbosity] >= 0) {
+ if(d_options[options::interactivePrompt]) {
d_out << "... > " << flush;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback