vsm: make vsm> prompt, finish prompt line on exit in interactive mode 42/46342/2
authorKrzysztof Dynowski <k.dynowski@samsung.com>
Wed, 19 Aug 2015 10:51:22 +0000 (12:51 +0200)
committerKrzysztof Dynowski <k.dynowski@samsung.com>
Wed, 19 Aug 2015 12:47:17 +0000 (14:47 +0200)
[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

index 48a71f2..739d293 100644 (file)
@@ -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
         }
     }