Browse Source

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
sbg
Beat Küng 9 years ago
parent
commit
a7c7a46be8
  1. 4
      src/platforms/posix/main.cpp

4
src/platforms/posix/main.cpp

@ -128,7 +128,7 @@ static void run_cmd(const vector<string> &appargs, bool exit_on_fail) @@ -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) @@ -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;

Loading…
Cancel
Save