From ec1876ec7d820ad1cd34952f5e63e1592c17cf65 Mon Sep 17 00:00:00 2001 From: Krzysztof Dynowski Date: Wed, 19 Aug 2015 12:51:22 +0200 Subject: [PATCH] vsm: make vsm> prompt, finish prompt line on exit in interactive mode [Feature] 'vsm>' prompt, new line when exit [Cause] prompt gives clear info what is the interpreter [Solution] N/A [Verification] Build, install, use vsm command Change-Id: Ic5b6751dbebc38d204565311380d6459448d25a0 --- cli/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/main.cpp b/cli/main.cpp index 48a71f2..739d293 100644 --- a/cli/main.cpp +++ b/cli/main.cpp @@ -390,7 +390,7 @@ static int processStream(std::istream& stream) int rc = EXIT_FAILURE; std::string ln; - while (readline_from(">>> ", stream, ln)) { + while (readline_from("vsm> ", stream, ln)) { if (ln.empty() || ln[0] == '#') { //skip empty line or comment continue; } @@ -534,6 +534,7 @@ int main(const int argc, const char *argv[]) if (interactiveMode) { ::write_history(historyfile.c_str()); + std::cout << std::endl; // finish prompt line } } -- 2.7.4