posix console: output newline before process_line

Before the output looked like this:
pxh> logger statusINFO  [logger]   Running
INFO  [logger]   Wrote 0.13 MiB (avg  0.72 KiB/s)
INFO  [logger]   Since last status: dropouts: 0 (max len: 0.000 s), max used buffer: 7176 / 12288 B
This commit is contained in:
Beat Küng
2016-06-09 15:25:11 +02:00
parent fcab80bfee
commit a7c7a46be8
+2 -2
View File
@@ -128,7 +128,7 @@ static void run_cmd(const vector<string> &appargs, bool exit_on_fail)
// Do nothing
} else {
cout << endl << "Invalid command: " << command << "\ntype 'help' for a list of commands" << endl;
cout << "Invalid command: " << command << "\ntype 'help' for a list of commands" << endl;
}
}
@@ -335,8 +335,8 @@ int main(int argc, char **argv)
}
}
process_line(mystr, false);
cout << endl;
process_line(mystr, false);
mystr = "";
buf_ptr_read = buf_ptr_write;